Skip to content

Commit b80638e

Browse files
committed
golangci: Exclude some linters for test files
1 parent 82aeb16 commit b80638e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.golangci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,14 @@ run:
8888
output:
8989
format: colored-line-number
9090

91+
issues:
92+
# Excluding configuration per-path, per-linter, per-text and per-source
93+
exclude-rules:
94+
# Exclude some linters from running on tests files.
95+
- path: _test\.go
96+
linters:
97+
- gocyclo
98+
- funlen
99+
- dupl
100+
- gosec
101+

0 commit comments

Comments
 (0)