Add golangci lint #248
Annotations
10 errors
test:
gitlab/commit.go#L31
Error return value of `h.client.Projects.GetProject` is not checked (errcheck)
|
test:
api/files.go#L100
Error return value of `file.SetEncoding` is not checked (errcheck)
|
test:
api/files.go#L150
Error return value of `file.SetEncoding` is not checked (errcheck)
|
test:
cmd/serve/root.go#L62
Error return value of `(*go.uber.org/zap.SugaredLogger).Sync` is not checked (errcheck)
|
test:
cmd/serve/root.go#L102
Error return value of `logger.Sync` is not checked (errcheck)
|
test:
cmd/serve/root.go#L141
Error return value of `tp.Shutdown` is not checked (errcheck)
|
test:
cmd/serve/root.go#L142
Error return value of `mp.Shutdown` is not checked (errcheck)
|
test:
internal/config/config.go#L75
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(strings.ToLower(
|
test:
api/middleware.go#L50
ifElseChain: rewrite if-else to switch statement (gocritic)
|
test:
api/middleware.go#L51
ifElseChain: rewrite if-else to switch statement (gocritic)
|