Skip to content

Commit

Permalink
Update golangci
Browse files Browse the repository at this point in the history
* 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] golangci/golangci-lint#1765
[2] golangci/golangci-lint#541
  • Loading branch information
drpaneas committed Mar 24, 2021
1 parent 236a091 commit 841a3a3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ linters:
- gosimple
- govet
- ineffassign
- interfacer
- lll
- maligned
- fieldalignment
- misspell
- nakedret
- prealloc
Expand All @@ -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

0 comments on commit 841a3a3

Please sign in to comment.