mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Enable errcheck for golangci-lint (#19976)
* Enable `errcheck` for golangci-lint * Fix linting errors * pkg/plugins: Fix tests * pkg/plugins: Add test
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
enable:
|
||||
|
||||
run:
|
||||
deadline: 10m
|
||||
run:
|
||||
deadline: 10m
|
||||
|
||||
linters:
|
||||
disable-all: true
|
||||
@@ -15,11 +15,11 @@ linters:
|
||||
- typecheck
|
||||
- unconvert
|
||||
- unused
|
||||
- varcheck
|
||||
- goconst
|
||||
- staticcheck
|
||||
- varcheck
|
||||
- goconst
|
||||
- staticcheck
|
||||
- errcheck
|
||||
|
||||
linter-settings:
|
||||
goconst:
|
||||
ignore-tests: true
|
||||
|
||||
Reference in New Issue
Block a user