@@ -452,10 +452,12 @@ type FunlenSettings struct {
452
452
}
453
453
454
454
type GciSettings struct {
455
- LocalPrefixes string `mapstructure:"local-prefixes"` // Deprecated
456
455
Sections []string `mapstructure:"sections"`
457
456
SkipGenerated bool `mapstructure:"skip-generated"`
458
457
CustomOrder bool `mapstructure:"custom-order"`
458
+
459
+ // Deprecated: use Sections instead.
460
+ LocalPrefixes string `mapstructure:"local-prefixes"`
459
461
}
460
462
461
463
type GinkgoLinterSettings struct {
@@ -511,7 +513,7 @@ type GodotSettings struct {
511
513
Capital bool `mapstructure:"capital"`
512
514
Period bool `mapstructure:"period"`
513
515
514
- // Deprecated: use ` Scope` instead
516
+ // Deprecated: use Scope instead
515
517
CheckAll bool `mapstructure:"check-all"`
516
518
}
517
519
@@ -548,11 +550,13 @@ type GoImportsSettings struct {
548
550
}
549
551
550
552
type GoMndSettings struct {
551
- Settings map [string ]map [string ]any // Deprecated
552
- Checks []string `mapstructure:"checks"`
553
- IgnoredNumbers []string `mapstructure:"ignored-numbers"`
554
- IgnoredFiles []string `mapstructure:"ignored-files"`
555
- IgnoredFunctions []string `mapstructure:"ignored-functions"`
553
+ Checks []string `mapstructure:"checks"`
554
+ IgnoredNumbers []string `mapstructure:"ignored-numbers"`
555
+ IgnoredFiles []string `mapstructure:"ignored-files"`
556
+ IgnoredFunctions []string `mapstructure:"ignored-functions"`
557
+
558
+ // Deprecated: use root level settings instead.
559
+ Settings map [string ]map [string ]any
556
560
}
557
561
558
562
type GoModDirectivesSettings struct {
@@ -814,13 +818,13 @@ type SpancheckSettings struct {
814
818
}
815
819
816
820
type StaticCheckSettings struct {
817
- // Deprecated: use the global `run.go` instead.
818
- GoVersion string `mapstructure:"go"`
819
-
820
821
Checks []string `mapstructure:"checks"`
821
822
Initialisms []string `mapstructure:"initialisms"` // only for stylecheck
822
823
DotImportWhitelist []string `mapstructure:"dot-import-whitelist"` // only for stylecheck
823
824
HTTPStatusCodeWhitelist []string `mapstructure:"http-status-code-whitelist"` // only for stylecheck
825
+
826
+ // Deprecated: use the global `run.go` instead.
827
+ GoVersion string `mapstructure:"go"`
824
828
}
825
829
826
830
func (s * StaticCheckSettings ) HasConfiguration () bool {
0 commit comments