misc: Add golangci-lint #4
Annotations
10 errors
lint:
pkg/plugin/client_test.go#L35
Error return value of `w.Write` is not checked (errcheck)
|
lint:
pkg/plugin/client_test.go#L48
Error return value of `grf.Dashboard` is not checked (errcheck)
|
lint:
pkg/plugin/client_test.go#L93
Error return value of `grf.PanelPNG` is not checked (errcheck)
|
lint:
pkg/plugin/client_test.go#L141
Error return value of `grf.PanelPNG` is not checked (errcheck)
|
lint:
pkg/plugin/resources.go#L193
Error return value of `w.Write` is not checked (errcheck)
|
lint:
pkg/plugin/client_test.go#L18
don't use `init` function (gochecknoinits)
|
lint:
pkg/plugin/dashboard.go#L146
cognitive complexity 39 of func `panelsFromBrowser` is high (> 30) (gocognit)
|
lint:
pkg/plugin/resources.go#L42
cognitive complexity 37 of func `(*App).handleReport` is high (> 30) (gocognit)
|
lint:
pkg/plugin/client.go#L288
string `grid` has 3 occurrences, make it a constant (goconst)
|
lint:
pkg/plugin/chromedp.go#L157
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
|