Add linting to CI #1
Annotations
10 errors
lint:
cmd/root.go#L18
use of `os.Exit` forbidden because "Using anything except Signal and SyscallError from the os package is forbidden" (forbidigo)
|
lint:
cmd/root.go#L27
use of `os.Exit` forbidden because "Using anything except Signal and SyscallError from the os package is forbidden" (forbidigo)
|
lint:
cmd/root.go#L43
use of `os.Exit` forbidden because "Using anything except Signal and SyscallError from the os package is forbidden" (forbidigo)
|
lint:
cmd/root.go#L61
use of `os.Exit` forbidden because "Using anything except Signal and SyscallError from the os package is forbidden" (forbidigo)
|
lint:
api/api.go#L95
`if err != nil` has complex nested blocks (complexity: 11) (nestif)
|
lint:
cmd/serve.go#L39
Non-inherited new context, use function like `context.WithXXX` instead (contextcheck)
|
lint:
api/api.go#L96
type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
|
lint:
api/api.go#L107
type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
|
lint:
api/api.go#L72
type assertion must be checked (forcetypeassert)
|
lint:
env/version.go#L6
Version is a global variable (gochecknoglobals)
|