File tree Expand file tree Collapse file tree 2 files changed +40
-28
lines changed
Expand file tree Collapse file tree 2 files changed +40
-28
lines changed Original file line number Diff line number Diff line change 3535 - uses : actions/setup-go@v5
3636 with :
3737 go-version : oldstable
38- - uses : golangci/golangci-lint-action@v6
38+ - uses : golangci/golangci-lint-action@v8
3939 with :
40- version : latest
40+ version : v2.1
Original file line number Diff line number Diff line change 1+ version : " 2"
12linters :
23 enable :
3- - errcheck
4- - gosimple
5- - govet
6- - ineffassign
7- - staticcheck
8- - unused
94 - asasalint
105 - asciicheck
116 - bidichk
@@ -24,7 +19,6 @@ linters:
2419 - errorlint
2520 - exhaustive
2621 - fatcontext
27- - gci
2822 - ginkgolinter
2923 - gocheckcompilerdirectives
3024 - gochecknoinits
@@ -33,10 +27,7 @@ linters:
3327 - gocritic
3428 - godot
3529 - godox
36- - gofmt
37- - gofumpt
3830 - goheader
39- - goimports
4031 - gomoddirectives
4132 - gomodguard
4233 - goprintffuncname
@@ -73,7 +64,6 @@ linters:
7364 - spancheck
7465 - tagalign
7566 - tagliatelle
76- - tenv
7767 - testableexamples
7868 - testifylint
7969 - testpackage
@@ -85,18 +75,40 @@ linters:
8575 - whitespace
8676 - wsl
8777 - zerologlint
88-
89- linters-settings :
90- varnamelen :
91- ignore-type-assert-ok : true
92- ignore-decls :
93- - i int
94- - tx *sql.Tx
95- - ts *ast.TypeSpec
96- - fn *ast.FuncDecl
97- - fun *ast.FuncDecl
98- - fnDecl *ast.FuncDecl
99- - funDecl *ast.FuncDecl
100- mnd :
101- ignored-numbers :
102- - " 2"
78+ settings :
79+ mnd :
80+ ignored-numbers :
81+ - " 2"
82+ varnamelen :
83+ ignore-type-assert-ok : true
84+ ignore-decls :
85+ - i int
86+ - tx *sql.Tx
87+ - ts *ast.TypeSpec
88+ - fn *ast.FuncDecl
89+ - fun *ast.FuncDecl
90+ - fnDecl *ast.FuncDecl
91+ - funDecl *ast.FuncDecl
92+ exclusions :
93+ generated : lax
94+ presets :
95+ - comments
96+ - common-false-positives
97+ - legacy
98+ - std-error-handling
99+ paths :
100+ - third_party$
101+ - builtin$
102+ - examples$
103+ formatters :
104+ enable :
105+ - gci
106+ - gofmt
107+ - gofumpt
108+ - goimports
109+ exclusions :
110+ generated : lax
111+ paths :
112+ - third_party$
113+ - builtin$
114+ - examples$
You can’t perform that action at this time.
0 commit comments