1+ version : " 2"
12run :
2- timeout : 3m
3- go : " 1.23"
4-
5- # This file contains only configs which differ from defaults.
6- # All possible options can be found here https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
7- linters-settings :
8- cyclop :
9- max-complexity : 30
10- package-average : 10.0
11-
12- errcheck :
13- check-type-assertions : true
14-
15- gocritic :
16- settings :
17- captLocal :
18- paramsOnly : false
19- underef :
20- skipRecvDeref : false
21-
22- gomodguard :
23- blocked :
24- modules :
25- - github.com/golang/protobuf :
26- recommendations :
27- - google.golang.org/protobuf
28- reason : " see https://developers.google.com/protocol-buffers/docs/reference/go/faq#modules"
29- - github.com/satori/go.uuid :
30- recommendations :
31- - github.com/google/uuid
32- reason : " satori's package is not maintained"
33- - github.com/gofrs/uuid :
34- recommendations :
35- - github.com/google/uuid
36- reason : " see recommendation from dev-infra team: https://confluence.gtforge.com/x/gQI6Aw"
37-
38- govet :
39- enable-all : true
40- disable :
41- - fieldalignment
42-
43- settings :
44- shadow :
45- strict : true
46-
47- nakedret :
48- max-func-lines : 0
49-
50- nolintlint :
51- allow-no-explanation : [funlen, gocognit, lll]
52- require-explanation : false
53- require-specific : true
54-
55- rowserrcheck :
56- packages :
57- - github.com/jmoiron/sqlx
58-
59- tenv :
60- all : true
61-
3+ go : " 1.25"
624linters :
63- disable-all : true
5+ default : none
646 enable :
65- - errcheck
66- - gosimple
67- - govet
68- - ineffassign
69- - staticcheck
70- - typecheck
71- - unused
727 - asciicheck
738 - bidichk
749 - bodyclose
@@ -80,17 +15,17 @@ linters:
8015 - errorlint
8116 - exhaustive
8217 - gocritic
83- - goimports
8418 - gomoddirectives
8519 - gomodguard
8620 - goprintffuncname
8721 - gosec
22+ - govet
23+ - ineffassign
8824 - makezero
8925 - mirror
9026 - nakedret
9127 - nilerr
9228 - nilnil
93- - noctx
9429 - nolintlint
9530 - nonamedreturns
9631 - nosprintfhostport
@@ -99,12 +34,77 @@ linters:
9934 - revive
10035 - rowserrcheck
10136 - sqlclosecheck
102- - stylecheck
103- - tenv
10437 - thelper
10538 - tparallel
10639 - unconvert
10740 - unparam
41+ - unused
10842 - usestdlibvars
10943 - wastedassign
11044 - whitespace
45+ settings :
46+ cyclop :
47+ max-complexity : 30
48+ package-average : 10
49+ errcheck :
50+ check-type-assertions : true
51+ gocritic :
52+ settings :
53+ captLocal :
54+ paramsOnly : false
55+ underef :
56+ skipRecvDeref : false
57+ gomodguard :
58+ blocked :
59+ modules :
60+ - github.com/golang/protobuf :
61+ recommendations :
62+ - google.golang.org/protobuf
63+ reason : see https://developers.google.com/protocol-buffers/docs/reference/go/faq#modules
64+ - github.com/satori/go.uuid :
65+ recommendations :
66+ - github.com/google/uuid
67+ reason : satori's package is not maintained
68+ - github.com/gofrs/uuid :
69+ recommendations :
70+ - github.com/google/uuid
71+ reason : " see recommendation from dev-infra team: https://confluence.gtforge.com/x/gQI6Aw"
72+ govet :
73+ disable :
74+ - fieldalignment
75+ enable-all : true
76+ settings :
77+ shadow :
78+ strict : true
79+ nakedret :
80+ max-func-lines : 0
81+ nolintlint :
82+ require-explanation : false
83+ require-specific : true
84+ allow-no-explanation :
85+ - funlen
86+ - gocognit
87+ - lll
88+ rowserrcheck :
89+ packages :
90+ - github.com/jmoiron/sqlx
91+ exclusions :
92+ generated : lax
93+ presets :
94+ - comments
95+ - common-false-positives
96+ - legacy
97+ - std-error-handling
98+ paths :
99+ - third_party$
100+ - builtin$
101+ - examples$
102+ formatters :
103+ enable :
104+ - goimports
105+ exclusions :
106+ generated : lax
107+ paths :
108+ - third_party$
109+ - builtin$
110+ - examples$
0 commit comments