Skip to content

Fix unit tests (#56) #10

Fix unit tests (#56)

Fix unit tests (#56) #10

Triggered via push December 1, 2023 15:05
Status Failure
Total duration 38s
Artifacts

linters.yaml

on: push
golangci-lint
28s
golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 10 warnings
golangci-lint: api/api.go#L49
G101: Potential hardcoded credentials (gosec)
golangci-lint: api/api.go#L262
G402: TLS InsecureSkipVerify set true. (gosec)
golangci-lint: api/api.go#L271
G402: TLS MinVersion too low. (gosec)
golangci-lint
issues found
golangci-lint: api/api.go#L170
var-naming: don't use underscores in Go names; const Verbose_High should be VerboseHigh (revive)
golangci-lint: api/api.go#L171
var-naming: don't use underscores in Go names; const Verbose_Medium should be VerboseMedium (revive)
golangci-lint: api/api.go#L172
var-naming: don't use underscores in Go names; const Verbose_Low should be VerboseLow (revive)
golangci-lint: api/api.go#L622
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
golangci-lint: api/api.go#L641
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
golangci-lint: api/api.go#L644
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
golangci-lint: api/api.go#L651
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
golangci-lint: api/api.go#L652
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
golangci-lint: api/api.go#L690
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
golangci-lint: api/api_logging.go#L36
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)