File tree Expand file tree Collapse file tree 2 files changed +35
-11
lines changed Expand file tree Collapse file tree 2 files changed +35
-11
lines changed Original file line number Diff line number Diff line change 3232 - run : go mod download
3333 - run : go build -v .
3434 - name : Run linters
35- uses : golangci/golangci-lint-action@v6
35+ uses : golangci/golangci-lint-action@v8
3636 with :
3737 version : latest
3838
Original file line number Diff line number Diff line change 1- # Visit https://golangci-lint.run/ for usage documentation
2- # and information on other useful linters
3- issues :
4- max-per-linter : 0
5- max-same-issues : 0
6-
1+ version : " 2"
72linters :
8- disable-all : true
93 enable :
4+ - dupl
5+ - gosec
6+ - nakedret
7+ - whitespace
108 - durationcheck
119 - errcheck
1210 - copyloopvar
1311 - forcetypeassert
1412 - godot
15- - gofmt
16- - gosimple
1713 - ineffassign
1814 - makezero
1915 - misspell
@@ -24,4 +20,32 @@ linters:
2420 - unconvert
2521 - unparam
2622 - unused
27- - govet
23+ - govet
24+ settings :
25+ dupl :
26+ threshold : 250
27+ exclusions :
28+ generated : lax
29+ rules :
30+ - text : ' ST1003:'
31+ linters :
32+ - staticcheck
33+ presets :
34+ - comments
35+ - common-false-positives
36+ - legacy
37+ - std-error-handling
38+ paths :
39+ - third_party$
40+ - builtin$
41+ - examples$
42+ formatters :
43+ enable :
44+ - gofmt
45+ - goimports
46+ exclusions :
47+ generated : lax
48+ paths :
49+ - third_party$
50+ - builtin$
51+ - examples$
You can’t perform that action at this time.
0 commit comments