minor #25
Annotations
10 errors
cmd/root.go#L45
Error return value of `godotenv.Load` is not checked (errcheck)
|
cmd/root.go#L46
Error return value of `viper.BindEnv` is not checked (errcheck)
|
cmd/root.go#L50
Error return value of `viper.BindEnv` is not checked (errcheck)
|
cmd/root.go#L54
Error return value of `viper.BindEnv` is not checked (errcheck)
|
main.go#L43
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(string(j), `\n`, "\n", -1)` (gocritic)
|
context/keys.go#L6
var-declaration: should omit type ContextKey from declaration of var scope; it will be inferred from the right-hand side (revive)
|
context/keys.go#L7
var-declaration: should omit type ContextKey from declaration of var logger; it will be inferred from the right-hand side (revive)
|
context/keys.go#L3
exported: exported type ContextKey should have comment or be unexported (revive)
|
context/context.go#L5
exported: exported type Context should have comment or be unexported (revive)
|
context/context.go#L9
exported: exported function NewContext should have comment or be unexported (revive)
|
This job failed
Loading