Skip to content

misc: Add golangci-lint #4

misc: Add golangci-lint

misc: Add golangci-lint #4

Triggered via pull request July 12, 2024 19:06
@jkroepkejkroepke
synchronize #57
golang-ci
Status Success
Total duration 49s
Artifacts

lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

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)