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:
Arve Knudsen
2019-10-28 17:25:35 +01:00
committed by GitHub
parent 9e004b9211
commit f9774acc4c
4 changed files with 56 additions and 18 deletions

View File

@@ -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