fix: update .golangci.yml to v2 config format
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
golangci-lint v2 requires version: "2" at the top level, linters.settings (not linters-settings), and issues.exclusions.rules (not issues.exclude-rules). Also removed gosimple and unused which are now merged into staticcheck. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
12c547d215
commit
8f2080203d
@ -1,25 +1,24 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- errcheck
|
- errcheck
|
||||||
- govet
|
- govet
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- gosimple
|
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- unused
|
|
||||||
- errorlint
|
- errorlint
|
||||||
- gocritic
|
- gocritic
|
||||||
- revive
|
- revive
|
||||||
|
settings:
|
||||||
linters-settings:
|
revive:
|
||||||
revive:
|
rules:
|
||||||
rules:
|
- name: exported
|
||||||
- name: exported
|
disabled: true
|
||||||
disabled: true
|
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
exclude-rules:
|
exclusions:
|
||||||
# Test files can use dot-imports and assertion helpers freely
|
rules:
|
||||||
- path: _test\.go
|
- path: _test\.go
|
||||||
linters:
|
linters:
|
||||||
- errcheck
|
- errcheck
|
||||||
- gocritic
|
- gocritic
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user