build(deps): bump github.com/nishanths/exhaustive from 0.11.0 to 0.12.0 (#4195)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
da3eb3138a
commit
b3146552ac
@ -344,6 +344,9 @@ linters-settings:
|
||||
# Only run exhaustive check on map literals with "//exhaustive:enforce" comment.
|
||||
# Default: false
|
||||
explicit-exhaustive-map: true
|
||||
# Switch statement requires default case even if exhaustive.
|
||||
# Default: false
|
||||
default-case-required: true
|
||||
|
||||
exhaustivestruct:
|
||||
# Struct Patterns is list of expressions to match struct packages and names.
|
||||
|
2
go.mod
2
go.mod
@ -80,7 +80,7 @@ require (
|
||||
github.com/mitchellh/mapstructure v1.5.0
|
||||
github.com/moricho/tparallel v0.3.1
|
||||
github.com/nakabonne/nestif v0.3.1
|
||||
github.com/nishanths/exhaustive v0.11.0
|
||||
github.com/nishanths/exhaustive v0.12.0
|
||||
github.com/nishanths/predeclared v0.2.2
|
||||
github.com/nunnatsa/ginkgolinter v0.14.1
|
||||
github.com/polyfloyd/go-errorlint v1.4.5
|
||||
|
4
go.sum
generated
4
go.sum
generated
@ -401,8 +401,8 @@ github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRW
|
||||
github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U=
|
||||
github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE=
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
|
||||
github.com/nishanths/exhaustive v0.11.0 h1:T3I8nUGhl/Cwu5Z2hfc92l0e04D2GEW6e0l8pzda2l0=
|
||||
github.com/nishanths/exhaustive v0.11.0/go.mod h1:RqwDsZ1xY0dNdqHho2z6X+bgzizwbLYOWnZbbl2wLB4=
|
||||
github.com/nishanths/exhaustive v0.12.0 h1:vIY9sALmw6T/yxiASewa4TQcFsVYZQQRUQJhKRf3Swg=
|
||||
github.com/nishanths/exhaustive v0.12.0/go.mod h1:mEZ95wPIZW+x8kC4TgC+9YCUgiST7ecevsVDTgc2obs=
|
||||
github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk=
|
||||
github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c=
|
||||
github.com/nunnatsa/ginkgolinter v0.14.1 h1:khx0CqR5U4ghsscjJ+lZVthp3zjIFytRXPTaQ/TMiyA=
|
||||
|
@ -352,6 +352,7 @@ type ExhaustiveSettings struct {
|
||||
PackageScopeOnly bool `mapstructure:"package-scope-only"`
|
||||
ExplicitExhaustiveMap bool `mapstructure:"explicit-exhaustive-map"`
|
||||
ExplicitExhaustiveSwitch bool `mapstructure:"explicit-exhaustive-switch"`
|
||||
DefaultCaseRequired bool `mapstructure:"default-case-required"`
|
||||
}
|
||||
|
||||
type ExhaustiveStructSettings struct {
|
||||
|
@ -23,6 +23,7 @@ func NewExhaustive(settings *config.ExhaustiveSettings) *goanalysis.Linter {
|
||||
exhaustive.PackageScopeOnlyFlag: settings.PackageScopeOnly,
|
||||
exhaustive.ExplicitExhaustiveMapFlag: settings.ExplicitExhaustiveMap,
|
||||
exhaustive.ExplicitExhaustiveSwitchFlag: settings.ExplicitExhaustiveSwitch,
|
||||
exhaustive.DefaultCaseRequiredFlag: settings.DefaultCaseRequired,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user