mirror of
https://github.com/hashicorp/packer.git
synced 2025-12-18 23:16:06 -05:00
golangci.yml: add rule to not run errcheck on test
Test files have some calls that don't necessarily get checked since they have a very low probability to fail, and in a testing environment it's acceptable to not have bulletproof code. Therefore, we add a rule to not run that check on any file that ends with `_test.go` (Go test convention), so the linter isn't as noisy as it used to be.
This commit is contained in:
parent
4a7f5f38a6
commit
02ac9628cc
1 changed files with 3 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ issues:
|
|||
- linters:
|
||||
- lll
|
||||
source: "^//go:generate "
|
||||
- linters:
|
||||
- errcheck
|
||||
path: ".*_test.go"
|
||||
|
||||
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
|
||||
max-issues-per-linter: 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue