Skip to content

Commit c4b6d37

Browse files
build(deps): bump github.com/nunnatsa/ginkgolinter from 0.17.0 to 0.18.0 (#5114)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 7560b4f commit c4b6d37

File tree

6 files changed

+14
-3
lines changed

6 files changed

+14
-3
lines changed

.golangci.next.reference.yml

+4
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,10 @@ linters-settings:
652652
# Default: false
653653
forbid-spec-pollution: true
654654

655+
# Force using the Succeed matcher for error functions, and the HaveOccurred matcher for non-function error values.
656+
# Default: false
657+
force-succeed: true
658+
655659
gochecksumtype:
656660
# Presence of `default` case in switch statements satisfies exhaustiveness, if all members are not listed.
657661
# Default: true

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ require (
8282
github.com/nakabonne/nestif v0.3.1
8383
github.com/nishanths/exhaustive v0.12.0
8484
github.com/nishanths/predeclared v0.2.2
85-
github.com/nunnatsa/ginkgolinter v0.17.0
85+
github.com/nunnatsa/ginkgolinter v0.18.0
8686
github.com/pelletier/go-toml/v2 v2.2.3
8787
github.com/polyfloyd/go-errorlint v1.6.0
8888
github.com/quasilyte/go-ruleguard/dsl v0.3.22

go.sum

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

jsonschema/golangci.next.jsonschema.json

+5
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,11 @@
11801180
"description": "Trigger a warning for variable assignments in ginkgo containers like `Describe`, `Context` and `When`, instead of in `BeforeEach()`.",
11811181
"type": "boolean",
11821182
"default": false
1183+
},
1184+
"force-succeed": {
1185+
"description": "Force using the Succeed matcher for error functions, and the HaveOccurred matcher for non-function error values.",
1186+
"type": "boolean",
1187+
"default": false
11831188
}
11841189
}
11851190
},

pkg/config/linters_settings.go

+1
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ type GinkgoLinterSettings struct {
488488
ForceExpectTo bool `mapstructure:"force-expect-to"`
489489
ValidateAsyncIntervals bool `mapstructure:"validate-async-intervals"`
490490
ForbidSpecPollution bool `mapstructure:"forbid-spec-pollution"`
491+
ForceSucceedForFuncs bool `mapstructure:"force-succeed"`
491492
}
492493

493494
type GoChecksumTypeSettings struct {

pkg/golinters/ginkgolinter/ginkgolinter.go

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func New(settings *config.GinkgoLinterSettings) *goanalysis.Linter {
2525
ForceExpectTo: types.Boolean(settings.ForceExpectTo),
2626
ValidateAsyncIntervals: types.Boolean(settings.ValidateAsyncIntervals),
2727
ForbidSpecPollution: types.Boolean(settings.ForbidSpecPollution),
28+
ForceSucceedForFuncs: types.Boolean(settings.ForceSucceedForFuncs),
2829
}
2930
}
3031

0 commit comments

Comments
 (0)