build(deps): bump github.com/nishanths/exhaustive from 0.8.1 to 0.8.3 (#3207)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
64d720f7d2
commit
33a78c9266
@ -307,6 +307,12 @@ linters-settings:
|
||||
# Consider enums only in package scopes, not in inner scopes.
|
||||
# Default: false
|
||||
package-scope-only: true
|
||||
# only run exhaustive check on switches with "//exhaustive:enforce" comment
|
||||
# Default: false
|
||||
explicit-exhaustive-switch: true
|
||||
# only run exhaustive check on map literals with "//exhaustive:enforce" comment.
|
||||
# Default: false
|
||||
explicit-exhaustive-map: true
|
||||
|
||||
exhaustivestruct:
|
||||
# Struct Patterns is list of expressions to match struct packages and names.
|
||||
|
2
go.mod
2
go.mod
@ -69,7 +69,7 @@ require (
|
||||
github.com/mitchellh/go-ps v1.0.0
|
||||
github.com/moricho/tparallel v0.2.1
|
||||
github.com/nakabonne/nestif v0.3.1
|
||||
github.com/nishanths/exhaustive v0.8.1
|
||||
github.com/nishanths/exhaustive v0.8.3
|
||||
github.com/nishanths/predeclared v0.2.2
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/polyfloyd/go-errorlint v1.0.3
|
||||
|
4
go.sum
generated
4
go.sum
generated
@ -388,8 +388,8 @@ github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 h1:4kuARK6Y6Fx
|
||||
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod h1:KSVJerMDfblTH7p5MZaTt+8zaT2iEk3AkVb9PQdZuE8=
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
|
||||
github.com/nishanths/exhaustive v0.8.1 h1:0QKNascWv9qIHY7zRoZSxeRr6kuk5aAT3YXLTiDmjTo=
|
||||
github.com/nishanths/exhaustive v0.8.1/go.mod h1:qj+zJJUgJ76tR92+25+03oYUhzF4R7/2Wk7fGTfCHmg=
|
||||
github.com/nishanths/exhaustive v0.8.3 h1:pw5O09vwg8ZaditDp/nQRqVnrMczSJDxRDJMowvhsrM=
|
||||
github.com/nishanths/exhaustive v0.8.3/go.mod h1:qj+zJJUgJ76tR92+25+03oYUhzF4R7/2Wk7fGTfCHmg=
|
||||
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/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
|
||||
|
@ -278,6 +278,8 @@ type ExhaustiveSettings struct {
|
||||
DefaultSignifiesExhaustive bool `mapstructure:"default-signifies-exhaustive"`
|
||||
IgnoreEnumMembers string `mapstructure:"ignore-enum-members"`
|
||||
PackageScopeOnly bool `mapstructure:"package-scope-only"`
|
||||
ExplicitExhaustiveMap bool `mapstructure:"explicit-exhaustive-map"`
|
||||
ExplicitExhaustiveSwitch bool `mapstructure:"explicit-exhaustive-switch"`
|
||||
}
|
||||
|
||||
type ExhaustiveStructSettings struct {
|
||||
|
@ -17,8 +17,9 @@ func NewExhaustive(settings *config.ExhaustiveSettings) *goanalysis.Linter {
|
||||
a.Name: {
|
||||
exhaustive.CheckGeneratedFlag: settings.CheckGenerated,
|
||||
exhaustive.DefaultSignifiesExhaustiveFlag: settings.DefaultSignifiesExhaustive,
|
||||
exhaustive.ExplicitExhaustiveMapFlag: settings.ExplicitExhaustiveMap,
|
||||
exhaustive.ExplicitExhaustiveSwitchFlag: settings.PackageScopeOnly,
|
||||
exhaustive.IgnoreEnumMembersFlag: settings.IgnoreEnumMembers,
|
||||
exhaustive.PackageScopeOnlyFlag: settings.PackageScopeOnly,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user