mirror of
https://github.com/spf13/viper.git
synced 2026-09-20 03:18:21 +00:00
ci: upgrade golangci-lint
This commit is contained in:
committed by
Márk Sági-Kazár
parent
35c2854c77
commit
ae5a8e23e2
@@ -80,7 +80,7 @@ jobs:
|
||||
- name: Lint
|
||||
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
|
||||
with:
|
||||
version: v2.1.6
|
||||
version: v2.4.0
|
||||
|
||||
dev:
|
||||
name: Developer environment
|
||||
|
||||
+10
-3
@@ -25,7 +25,7 @@ linters:
|
||||
- nolintlint
|
||||
- prealloc
|
||||
- predeclared
|
||||
# - revive
|
||||
- revive
|
||||
- rowserrcheck
|
||||
- sqlclosecheck
|
||||
- staticcheck
|
||||
@@ -75,8 +75,15 @@ linters:
|
||||
# - testpackage
|
||||
# - wsl
|
||||
|
||||
disable:
|
||||
- errcheck
|
||||
exclusions:
|
||||
rules:
|
||||
- linters:
|
||||
- errcheck
|
||||
- noctx
|
||||
path: _test.go
|
||||
presets:
|
||||
- comments
|
||||
- std-error-handling
|
||||
|
||||
settings:
|
||||
misspell:
|
||||
|
||||
Reference in New Issue
Block a user