File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -590,6 +590,10 @@ linters-settings:
590
590
# tab width in spaces. Default to 1.
591
591
tab-width : 1
592
592
593
+ maintidx :
594
+ # show functions with maintainability index < N only.
595
+ under : 20
596
+
593
597
makezero :
594
598
# Allow only slices initialized with a length of zero. Default is false.
595
599
always : false
@@ -1117,10 +1121,6 @@ linters-settings:
1117
1121
force-short-decl-cuddling : false
1118
1122
strict-append : true
1119
1123
1120
- maintidx :
1121
- # show functions with maintainability index < N only.
1122
- under : 20
1123
-
1124
1124
# The custom section can be used to define linter plugins to be loaded at runtime.
1125
1125
# See README doc for more info.
1126
1126
custom :
Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
441
441
WithSince ("v1.8.0" ).
442
442
WithPresets (linter .PresetStyle ),
443
443
444
- linter .NewConfig (golinters .NewMaintIdx ()).
444
+ linter .NewConfig (golinters .NewMaintIdx (maintIdxCfg )).
445
445
WithSince ("v1.1.0" ).
446
446
WithPresets (linter .PresetComplexity ).
447
447
WithLoadForGoAnalysis ().
You can’t perform that action at this time.
0 commit comments