Skip to content

Fix unit tests

Fix unit tests #6

Triggered via pull request December 1, 2023 10:32
Status Failure
Total duration 30s
Artifacts

linters.yaml

on: pull_request
golangci-lint
19s
golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
golangci-lint: acls.go#L30
File is not `gofumpt`-ed (gofumpt)
golangci-lint: acls.go#L39
File is not `gofumpt`-ed (gofumpt)
golangci-lint: acls.go#L47
File is not `gofumpt`-ed (gofumpt)
golangci-lint: acls.go#L71
File is not `gofumpt`-ed (gofumpt)
golangci-lint: acls_test.go#L18
File is not `gofumpt`-ed (gofumpt)
golangci-lint: acls_test.go#L20
File is not `gofumpt`-ed (gofumpt)
golangci-lint: api/api.go#L49
G101: Potential hardcoded credentials (gosec)
golangci-lint: api/api.go#L63
File is not `gofumpt`-ed (gofumpt)
golangci-lint: api/api.go#L217
File is not `gofumpt`-ed (gofumpt)
golangci-lint: api/api.go#L263
G402: TLS InsecureSkipVerify set true. (gosec)
golangci-lint: api/api.go#L171
var-naming: don't use underscores in Go names; const Verbose_High should be VerboseHigh (revive)
golangci-lint: api/api.go#L172
var-naming: don't use underscores in Go names; const Verbose_Medium should be VerboseMedium (revive)
golangci-lint: api/api.go#L173
var-naming: don't use underscores in Go names; const Verbose_Low should be VerboseLow (revive)
golangci-lint: api/api.go#L623
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
golangci-lint: api/api.go#L642
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
golangci-lint: api/api.go#L645
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
golangci-lint: api/api.go#L652
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
golangci-lint: api/api.go#L653
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
golangci-lint: api/api.go#L691
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#L35
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)