Skip to content

minor

minor #25

Triggered via push June 2, 2024 20:49
Status Failure
Total duration 10m 56s
Artifacts

build.yml

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

Annotations

30 errors
ci (ubuntu-latest): cmd/root.go#L45
Error return value of `godotenv.Load` is not checked (errcheck)
ci (ubuntu-latest): cmd/root.go#L46
Error return value of `viper.BindEnv` is not checked (errcheck)
ci (ubuntu-latest): cmd/root.go#L50
Error return value of `viper.BindEnv` is not checked (errcheck)
ci (ubuntu-latest): cmd/root.go#L54
Error return value of `viper.BindEnv` is not checked (errcheck)
ci (ubuntu-latest): main.go#L43
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(string(j), `\n`, "\n", -1)` (gocritic)
ci (ubuntu-latest): context/context.go#L1
package-comments: should have a package comment (revive)
ci (ubuntu-latest): 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)
ci (ubuntu-latest): 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)
ci (ubuntu-latest): context/keys.go#L3
exported: exported type ContextKey should have comment or be unexported (revive)
ci (ubuntu-latest): context/context.go#L5
exported: exported type Context should have comment or be unexported (revive)
ci (macos-latest): cmd/root.go#L45
Error return value of `godotenv.Load` is not checked (errcheck)
ci (macos-latest): cmd/root.go#L46
Error return value of `viper.BindEnv` is not checked (errcheck)
ci (macos-latest): cmd/root.go#L50
Error return value of `viper.BindEnv` is not checked (errcheck)
ci (macos-latest): cmd/root.go#L54
Error return value of `viper.BindEnv` is not checked (errcheck)
ci (macos-latest): main.go#L43
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(string(j), `\n`, "\n", -1)` (gocritic)
ci (macos-latest): 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)
ci (macos-latest): 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)
ci (macos-latest): context/keys.go#L3
exported: exported type ContextKey should have comment or be unexported (revive)
ci (macos-latest): context/context.go#L5
exported: exported type Context should have comment or be unexported (revive)
ci (macos-latest): context/context.go#L9
exported: exported function NewContext should have comment or be unexported (revive)
ci (windows-latest): cmd/root.go#L45
Error return value of `godotenv.Load` is not checked (errcheck)
ci (windows-latest): cmd/root.go#L46
Error return value of `viper.BindEnv` is not checked (errcheck)
ci (windows-latest): cmd/root.go#L50
Error return value of `viper.BindEnv` is not checked (errcheck)
ci (windows-latest): cmd/root.go#L54
Error return value of `viper.BindEnv` is not checked (errcheck)
ci (windows-latest): main.go#L43
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(string(j), `\n`, "\n", -1)` (gocritic)
ci (windows-latest): 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)
ci (windows-latest): 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)
ci (windows-latest): context/context.go#L1
package-comments: should have a package comment (revive)
ci (windows-latest): context/context.go#L5
exported: exported type Context should have comment or be unexported (revive)
ci (windows-latest): context/context.go#L9
exported: exported function NewContext should have comment or be unexported (revive)