@@ -37,7 +37,7 @@ func (b LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
37
37
WithPresets (linter .PresetBugs , linter .PresetStyle ).
38
38
WithURL ("https://github.com/tdakkota/asciicheck" ),
39
39
40
- linter .NewConfig (golinters .NewBiDiChkFuncName (& cfg .LintersSettings .BiDiChk )).
40
+ linter .NewConfig (golinters .NewBiDiChk (& cfg .LintersSettings .BiDiChk )).
41
41
WithSince ("1.43.0" ).
42
42
WithPresets (linter .PresetBugs ).
43
43
WithURL ("https://github.com/breml/bidichk" ),
@@ -117,7 +117,7 @@ func (b LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
117
117
WithPresets (linter .PresetBugs , linter .PresetError ).
118
118
WithURL ("https://github.com/kisielk/errcheck" ),
119
119
120
- linter .NewConfig (golinters .NewErrChkJSONFuncName (& cfg .LintersSettings .ErrChkJSON )).
120
+ linter .NewConfig (golinters .NewErrChkJSON (& cfg .LintersSettings .ErrChkJSON )).
121
121
WithSince ("1.44.0" ).
122
122
WithPresets (linter .PresetBugs ).
123
123
WithLoadForGoAnalysis ().
@@ -189,6 +189,7 @@ func (b LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
189
189
linter .NewConfig (golinters .NewGci (& cfg .LintersSettings .Gci )).
190
190
WithSince ("v1.30.0" ).
191
191
WithPresets (linter .PresetFormatting , linter .PresetImport ).
192
+ WithAutoFix ().
192
193
WithURL ("https://github.com/daixiang0/gci" ),
193
194
194
195
linter .NewConfig (golinters .NewGinkgoLinter (& cfg .LintersSettings .GinkgoLinter )).
@@ -232,6 +233,7 @@ func (b LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
232
233
WithSince ("v1.12.0" ).
233
234
WithPresets (linter .PresetStyle , linter .PresetMetaLinter ).
234
235
WithLoadForGoAnalysis ().
236
+ WithAutoFix ().
235
237
WithURL ("https://github.com/go-critic/go-critic" ),
236
238
237
239
linter .NewConfig (golinters .NewGocyclo (& cfg .LintersSettings .Gocyclo )).
@@ -271,6 +273,7 @@ func (b LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
271
273
linter .NewConfig (golinters .NewGoHeader (& cfg .LintersSettings .Goheader )).
272
274
WithSince ("v1.28.0" ).
273
275
WithPresets (linter .PresetStyle ).
276
+ WithAutoFix ().
274
277
WithURL ("https://github.com/denis-tingaikin/go-header" ),
275
278
276
279
linter .NewConfig (golinters .NewGoimports (& cfg .LintersSettings .Goimports )).
@@ -419,6 +422,7 @@ func (b LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
419
422
WithSince ("v1.53.0" ).
420
423
WithPresets (linter .PresetStyle ).
421
424
WithLoadForGoAnalysis ().
425
+ WithAutoFix ().
422
426
WithURL ("https://github.com/butuzov/mirror" ),
423
427
424
428
linter .NewConfig (golinters .NewMisspell (& cfg .LintersSettings .Misspell )).
@@ -706,6 +710,7 @@ func (b LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
706
710
linter .NewConfig (golinters .NewNoLintLint (& cfg .LintersSettings .NoLintLint )).
707
711
WithSince ("v1.26.0" ).
708
712
WithPresets (linter .PresetStyle ).
713
+ WithAutoFix ().
709
714
WithURL ("https://github.com/golangci/golangci-lint/blob/master/pkg/golinters/nolintlint/README.md" ),
710
715
}, nil
711
716
}
0 commit comments