exhaustive: drop deprecated/unused settings (#2482)
This commit is contained in:
parent
9dacd6170c
commit
cf053b2624
@ -21,7 +21,7 @@ var defaultLintersSettings = LintersSettings{
|
||||
CheckGenerated: false,
|
||||
DefaultSignifiesExhaustive: false,
|
||||
IgnoreEnumMembers: "",
|
||||
CheckingStrategy: "value",
|
||||
PackageScopeOnly: false,
|
||||
},
|
||||
Forbidigo: ForbidigoSettings{
|
||||
ExcludeGodocExamples: true,
|
||||
@ -223,9 +223,6 @@ type ExhaustiveSettings struct {
|
||||
DefaultSignifiesExhaustive bool `mapstructure:"default-signifies-exhaustive"`
|
||||
IgnoreEnumMembers string `mapstructure:"ignore-enum-members"`
|
||||
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 {
|
||||
|
@ -19,9 +19,6 @@ func NewExhaustive(settings *config.ExhaustiveSettings) *goanalysis.Linter {
|
||||
exhaustive.DefaultSignifiesExhaustiveFlag: settings.DefaultSignifiesExhaustive,
|
||||
exhaustive.IgnoreEnumMembersFlag: settings.IgnoreEnumMembers,
|
||||
exhaustive.PackageScopeOnlyFlag: settings.PackageScopeOnly,
|
||||
|
||||
exhaustive.IgnorePatternFlag: settings.IgnorePattern,
|
||||
exhaustive.CheckingStrategyFlag: settings.CheckingStrategy,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user