Skip to content

Commit f285d2c

Browse files
build(deps): bump github.com/nishanths/exhaustive from 0.1.0 to 0.2.3 (#2112)
1 parent d913078 commit f285d2c

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ require (
5454
github.com/mitchellh/go-ps v1.0.0
5555
github.com/moricho/tparallel v0.2.1
5656
github.com/nakabonne/nestif v0.3.0
57-
github.com/nishanths/exhaustive v0.1.0
57+
github.com/nishanths/exhaustive v0.2.3
5858
github.com/nishanths/predeclared v0.2.1
5959
github.com/pkg/errors v0.9.1
6060
github.com/polyfloyd/go-errorlint v0.0.0-20210510181950-ab96adb96fea

go.sum

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/linters_settings.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ type ErrorLintSettings struct {
174174
}
175175

176176
type ExhaustiveSettings struct {
177-
CheckGenerated bool `mapstructure:"check-generated"`
178-
DefaultSignifiesExhaustive bool `mapstructure:"default-signifies-exhaustive"`
177+
CheckGenerated bool `mapstructure:"check-generated"`
178+
DefaultSignifiesExhaustive bool `mapstructure:"default-signifies-exhaustive"`
179+
IgnorePattern string `mapstructure:"ignore-pattern"`
179180
}
180181

181182
type ExhaustiveStructSettings struct {

pkg/golinters/exhaustive.go

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ func NewExhaustive(settings *config.ExhaustiveSettings) *goanalysis.Linter {
1717
a.Name: {
1818
exhaustive.CheckGeneratedFlag: settings.CheckGenerated,
1919
exhaustive.DefaultSignifiesExhaustiveFlag: settings.DefaultSignifiesExhaustive,
20+
exhaustive.IgnorePatternFlag: settings.IgnorePattern,
2021
},
2122
}
2223
}

0 commit comments

Comments
 (0)