Fix golangci-lint config for v2+ format compatibility
This commit is contained in:
@@ -1,12 +1,8 @@
|
|||||||
version: "2"
|
|
||||||
|
|
||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
tests: true
|
tests: true
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
default: standard
|
|
||||||
|
|
||||||
enable:
|
enable:
|
||||||
- dupl
|
- dupl
|
||||||
- goconst
|
- goconst
|
||||||
@@ -17,7 +13,7 @@ linters:
|
|||||||
- unconvert
|
- unconvert
|
||||||
- unparam
|
- unparam
|
||||||
|
|
||||||
settings:
|
linters-settings:
|
||||||
dupl:
|
dupl:
|
||||||
threshold: 100
|
threshold: 100
|
||||||
errcheck:
|
errcheck:
|
||||||
@@ -39,13 +35,10 @@ linters:
|
|||||||
- name: var-naming
|
- name: var-naming
|
||||||
- name: exported
|
- name: exported
|
||||||
|
|
||||||
exclusions:
|
issues:
|
||||||
generated: lax
|
max-issues-per-linter: 0
|
||||||
paths:
|
max-same-issues: 0
|
||||||
- third_party$
|
exclude-rules:
|
||||||
- builtin$
|
|
||||||
- examples$
|
|
||||||
rules:
|
|
||||||
- path: _test\.go
|
- path: _test\.go
|
||||||
linters:
|
linters:
|
||||||
- dupl
|
- dupl
|
||||||
@@ -72,7 +65,3 @@ linters:
|
|||||||
text: G304.*file inclusion via variable
|
text: G304.*file inclusion via variable
|
||||||
- path: (.+)\.go$
|
- path: (.+)\.go$
|
||||||
text: 'G301: Expect directory permissions'
|
text: 'G301: Expect directory permissions'
|
||||||
|
|
||||||
issues:
|
|
||||||
max-issues-per-linter: 0
|
|
||||||
max-same-issues: 0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user