Skip to content

Commit 841a3a3

Browse files
committed
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] golangci/golangci-lint#1765 [2] golangci/golangci-lint#541
1 parent 236a091 commit 841a3a3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.golangci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ linters:
5757
- gosimple
5858
- govet
5959
- ineffassign
60-
- interfacer
6160
- lll
62-
- maligned
61+
- fieldalignment
6362
- misspell
6463
- nakedret
6564
- prealloc
@@ -78,11 +77,18 @@ linters:
7877

7978
run:
8079
timeout: 5m
80+
tests: true
8181
skip-dirs:
8282
- .github
8383
- build
8484
- web
8585

8686
issues:
87+
exclude-rules:
88+
- linters:
89+
- funlen
90+
# Disable 'funlen' linter for test functions.
91+
# It's common for table-driven tests to be more than 60 characters long
92+
source: "^func Test"
8793
max-same-issues: 0
8894
exclude-use-default: false

0 commit comments

Comments
 (0)