Skip to content

Commit a15934a

Browse files
dependabot[bot]SeigeC
authored andcommitted
build(deps): bump github.com/nishanths/exhaustive from 0.1.0 to 0.2.3 (golangci#2112)
1 parent bd0d0d7 commit a15934a

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/linters_settings.go

Lines changed: 3 additions & 2 deletions
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

Lines changed: 1 addition & 0 deletions
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)