Skip to content

Commit

Permalink
Refine linter (v2fly#203)
Browse files Browse the repository at this point in the history
* Linter: remove gochecknoinits plugin
* Linter: do NOT run some plugins on test files
  • Loading branch information
Loyalsoldier authored Sep 18, 2020
1 parent 782909b commit df2d296
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/linters/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ run:
skip-files:
- generated.*

issues:
new: true
exclude-rules:
- path: _test\.go
linters:
- gocyclo
- errcheck
- dupl
- gosec
- goconst
- funlen
- lll

linters:
enable:
- bodyclose
Expand All @@ -14,7 +27,6 @@ linters:
- errcheck
- exhaustive
- funlen
- gochecknoinits
- goconst
- gocritic
- gocyclo
Expand Down Expand Up @@ -44,6 +56,3 @@ linters:
- unused
- varcheck
- whitespace

issues:
new: true

0 comments on commit df2d296

Please sign in to comment.