Skip to content

minor: improved logging #68

minor: improved logging

minor: improved logging #68

Triggered via push June 8, 2024 17:23
Status Success
Total duration 2m 17s
Artifacts

codeql.yml

on: push
Matrix: analyze
Fit to window
Zoom out
Zoom in

Annotations

10 errors
analyze (go): core/task/command.go#L93
Error return value of `proc.Start` is not checked (errcheck)
analyze (go): config/validators.go#L56
cyclomatic complexity 18 of func `(*Task).Validate` is high (> 15) (gocyclo)
analyze (go): core/task/command.go#L82
G204: Subprocess launched with a potential tainted input or cmd arguments (gosec)
analyze (go): core/task/get.go#L79
response body must be closed (bodyclose)
analyze (go): core/task/post.go#L83
response body must be closed (bodyclose)
analyze (go): config/validators.go#L29
S1002: should omit comparison to bool constant, can be simplified to `c.Disabled` (gosimple)
analyze (go): config/validators.go#L128
S1002: should omit comparison to bool constant, can be simplified to `s.OnInit` (gosimple)
analyze (go): core/task/command.go#L97
S1030: should use res.String() instead of string(res.Bytes()) (gosimple)
analyze (go): core/task/command.go#L101
S1030: should use res.String() instead of string(res.Bytes()) (gosimple)
analyze (go): core/task/command.go#L105
naked return in func `Execute` with 46 lines of code (nakedret)