File tree Expand file tree Collapse file tree 1 file changed +7
-22
lines changed
Expand file tree Collapse file tree 1 file changed +7
-22
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,8 @@ linters:
8080 staticcheck :
8181 checks :
8282 - all
83- # "could remove embedded field", to keep it explicit!
84- - -QF1008
85- # "could use tagged switch on enum", Cases conflicts with exhaustive!
86- - -QF1003
83+ - -QF1008 # "could remove embedded field", to keep it explicit!
84+ - -QF1003 # "could use tagged switch on enum", Cases conflicts with exhaustive!
8785 exhaustive :
8886 default-signifies-exhaustive : true
8987 forbidigo :
@@ -93,10 +91,6 @@ linters:
9391 - pattern : ^os.Exit$
9492 - pattern : ^panic$
9593 - pattern : ^print(ln)?$
96- - pattern : ^testing.T.(Error|Errorf|Fatal|Fatalf|Fail|FailNow)$
97- pkg : ^testing$
98- msg : use testify/assert instead
99- analyze-types : true
10094 gomodguard :
10195 blocked :
10296 modules :
@@ -106,12 +100,6 @@ linters:
106100 govet :
107101 enable :
108102 - shadow
109- revive :
110- rules :
111- # Prefer 'any' type alias over 'interface{}' for Go 1.18+ compatibility
112- - name : use-any
113- severity : warning
114- disabled : false
115103 misspell :
116104 locale : US
117105 varnamelen :
@@ -132,18 +120,15 @@ linters:
132120 - linters :
133121 - forbidigo
134122 - gocognit
135- path : (examples|main\.go)
136- - linters :
137- - gocognit
138- path : _test\.go
123+ path : (examples|main\.go|_test\.go)
139124 - linters :
140125 - forbidigo
141126 path : cmd
142127formatters :
143128 enable :
144- - gci
145- - gofmt
146- - gofumpt
147- - goimports
129+ - gci # Gci control golang package import order and make it always deterministic.
130+ - gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
131+ - gofumpt # Gofumpt checks whether code was gofumpt-ed.
132+ - goimports # Goimports does everything that gofmt does. Additionally it checks unused imports
148133 exclusions :
149134 generated : lax
You can’t perform that action at this time.
0 commit comments