mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-16 09:25:57 -05:00
Update golangci
* Replace 'maligned' with 'fieldalignment' [1] * Remove 'interfacer' [2] * Enable linting against go test files as well * Disable 'funlen' linter for go table-driven tests [1] https://github.com/golangci/golangci-lint/pull/1765 [2] https://github.com/golangci/golangci-lint/issues/541
This commit is contained in:
parent
236a091997
commit
841a3a34bc
@ -57,9 +57,8 @@ linters:
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- interfacer
|
||||
- lll
|
||||
- maligned
|
||||
- fieldalignment
|
||||
- misspell
|
||||
- nakedret
|
||||
- prealloc
|
||||
@ -78,11 +77,18 @@ linters:
|
||||
|
||||
run:
|
||||
timeout: 5m
|
||||
tests: true
|
||||
skip-dirs:
|
||||
- .github
|
||||
- build
|
||||
- web
|
||||
|
||||
issues:
|
||||
exclude-rules:
|
||||
- linters:
|
||||
- funlen
|
||||
# Disable 'funlen' linter for test functions.
|
||||
# It's common for table-driven tests to be more than 60 characters long
|
||||
source: "^func Test"
|
||||
max-same-issues: 0
|
||||
exclude-use-default: false
|
||||
|
Loading…
Reference in New Issue
Block a user