File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # See https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
1+ version : " 2 "
22run :
33 tests : true
4-
5- linters-settings :
6- errcheck :
7- check-type-assertions : true
8- check-blank : true
9- gocyclo :
10- min-complexity : 20
11- dupl :
12- threshold : 100
13- misspell :
14- locale : US
15- unused :
16- check-exported : false
17- unparam :
18- check-exported : true
19-
204linters :
21- enable-all : true
5+ default : all
226 disable :
237 - depguard
248 - exhaustruct
25- - exportloopref
269 - forbidigo
2710 - forcetypeassert
28- - gci
2911 - gochecknoglobals
3012 - ireturn
3113 - lll
3214 - mnd
15+ - nolintlint
3316 - nonamedreturns
34- - nolintlint # https://github.com/golangci/golangci-lint/issues/3063
3517 - paralleltest
3618 - tagliatelle
3719 - testpackage
3820 - varnamelen
3921 - wrapcheck
40-
22+ - wsl
23+ settings :
24+ dupl :
25+ threshold : 100
26+ errcheck :
27+ check-type-assertions : true
28+ check-blank : true
29+ gocyclo :
30+ min-complexity : 20
31+ misspell :
32+ locale : US
33+ exclusions :
34+ generated : lax
35+ rules :
36+ - linters :
37+ - dupl
38+ - err113
39+ - funlen
40+ - goconst
41+ - mnd
42+ - noctx
43+ path : _test.go
44+ paths :
45+ - third_party$
46+ - builtin$
47+ - examples$
4148issues :
4249 max-same-issues : 20
43- exclude-use-default : false
44- exclude-rules :
45- - linters :
46- - dupl
47- - funlen
48- - goconst
49- - goerr113
50- - gomnd
51- - noctx
52- path : " _test.go"
50+ formatters :
51+ enable :
52+ - gofmt
53+ - gofumpt
54+ - goimports
55+ exclusions :
56+ generated : lax
57+ paths :
58+ - third_party$
59+ - builtin$
60+ - examples$
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ MODULE_NAME=python
33VENDOR_DIR = vendor
44
55PYTHON_VERSION ?= 3.11
6- GOLANGCI_LINT_VERSION ?= v1.63.4
6+ GOLANGCI_LINT_VERSION ?= v2.2.1
77
88GO ?= go
99GOLANGCI_LINT ?= $(shell go env GOPATH) /bin/golangci-lint-$(GOLANGCI_LINT_VERSION )
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ require (
1010
1111require (
1212 github.com/davecgh/go-spew v1.1.1 // indirect
13- github.com/kr/pretty v0.2.1 // indirect
13+ github.com/kr/pretty v0.3.1 // indirect
14+ github.com/kr/text v0.2.0 // indirect
1415 github.com/pmezard/go-difflib v1.0.0 // indirect
16+ github.com/rogpeppe/go-internal v1.9.0 // indirect
1517 gopkg.in/yaml.v3 v3.0.1 // indirect
1618)
Original file line number Diff line number Diff line change 1+ github.com/creack/pty v1.1.9 /go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E =
12github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
23github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
34github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI =
45github.com/kr/pretty v0.2.1 /go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI =
6+ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE =
7+ github.com/kr/pretty v0.3.1 /go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk =
58github.com/kr/pty v1.1.1 /go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ =
69github.com/kr/text v0.1.0 /go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI =
710github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY =
811github.com/kr/text v0.2.0 /go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE =
12+ github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e /go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA =
913github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
1014github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
15+ github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8 =
16+ github.com/rogpeppe/go-internal v1.9.0 /go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs =
1117github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA =
1218github.com/stretchr/testify v1.10.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
1319go.nhat.io/cpy/v3 v3.11.2 h1:6+9rz9UAMg2j3ryZ/r7m9KMTDua88uJcBjU+lHzJ+Jg =
You can’t perform that action at this time.
0 commit comments