exhaustive: drop deprecated/unused settings (#2482)
This commit is contained in:
parent
9dacd6170c
commit
cf053b2624
pkg
@ -21,7 +21,7 @@ var defaultLintersSettings = LintersSettings{
|
|||||||
CheckGenerated: false,
|
CheckGenerated: false,
|
||||||
DefaultSignifiesExhaustive: false,
|
DefaultSignifiesExhaustive: false,
|
||||||
IgnoreEnumMembers: "",
|
IgnoreEnumMembers: "",
|
||||||
CheckingStrategy: "value",
|
PackageScopeOnly: false,
|
||||||
},
|
},
|
||||||
Forbidigo: ForbidigoSettings{
|
Forbidigo: ForbidigoSettings{
|
||||||
ExcludeGodocExamples: true,
|
ExcludeGodocExamples: true,
|
||||||
@ -223,9 +223,6 @@ type ExhaustiveSettings struct {
|
|||||||
DefaultSignifiesExhaustive bool `mapstructure:"default-signifies-exhaustive"`
|
DefaultSignifiesExhaustive bool `mapstructure:"default-signifies-exhaustive"`
|
||||||
IgnoreEnumMembers string `mapstructure:"ignore-enum-members"`
|
IgnoreEnumMembers string `mapstructure:"ignore-enum-members"`
|
||||||
PackageScopeOnly bool `mapstructure:"package-scope-only"`
|
PackageScopeOnly bool `mapstructure:"package-scope-only"`
|
||||||
|
|
||||||
IgnorePattern string `mapstructure:"ignore-pattern"` // Deprecated: this setting has no effect; see IgnoreEnumMembers instead.
|
|
||||||
CheckingStrategy string `mapstructure:"checking-strategy"` // Deprecated.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ExhaustiveStructSettings struct {
|
type ExhaustiveStructSettings struct {
|
||||||
|
@ -19,9 +19,6 @@ func NewExhaustive(settings *config.ExhaustiveSettings) *goanalysis.Linter {
|
|||||||
exhaustive.DefaultSignifiesExhaustiveFlag: settings.DefaultSignifiesExhaustive,
|
exhaustive.DefaultSignifiesExhaustiveFlag: settings.DefaultSignifiesExhaustive,
|
||||||
exhaustive.IgnoreEnumMembersFlag: settings.IgnoreEnumMembers,
|
exhaustive.IgnoreEnumMembersFlag: settings.IgnoreEnumMembers,
|
||||||
exhaustive.PackageScopeOnlyFlag: settings.PackageScopeOnly,
|
exhaustive.PackageScopeOnlyFlag: settings.PackageScopeOnly,
|
||||||
|
|
||||||
exhaustive.IgnorePatternFlag: settings.IgnorePattern,
|
|
||||||
exhaustive.CheckingStrategyFlag: settings.CheckingStrategy,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user