Skip to content

Commit 8a0d1a2

Browse files
build(deps): bump github.com/nunnatsa/ginkgolinter from 0.20.0 to 0.21.0 (#6079)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent b7bd3db commit 8a0d1a2

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

.golangci.next.reference.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,10 @@ linters:
661661
# Default: false
662662
force-assertion-description: true
663663

664+
# Force using `ToNot`, `ShouldNot` instead of `To(Not())`.
665+
# Default: false
666+
force-tonot: true
667+
664668
gochecksumtype:
665669
# Presence of `default` case in switch statements satisfies exhaustiveness, if all members are not listed.
666670
# Default: true

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ require (
9191
github.com/nakabonne/nestif v0.3.1
9292
github.com/nishanths/exhaustive v0.12.0
9393
github.com/nishanths/predeclared v0.2.2
94-
github.com/nunnatsa/ginkgolinter v0.20.0
94+
github.com/nunnatsa/ginkgolinter v0.21.0
9595
github.com/pelletier/go-toml/v2 v2.2.4
9696
github.com/polyfloyd/go-errorlint v1.8.0
9797
github.com/quasilyte/go-ruleguard/dsl v0.3.22
@@ -216,7 +216,7 @@ require (
216216
go.uber.org/multierr v1.10.0 // indirect
217217
go.uber.org/zap v1.27.0 // indirect
218218
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
219-
golang.org/x/exp/typeparams v0.0.0-20250620022241-b7579e27df2b // indirect
219+
golang.org/x/exp/typeparams v0.0.0-20250911091902-df9299821621 // indirect
220220
golang.org/x/text v0.28.0 // indirect
221221
golang.org/x/tools/go/expect v0.1.1-deprecated // indirect
222222
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated // indirect

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.

jsonschema/golangci.next.jsonschema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,6 +1564,11 @@
15641564
"description": "Force adding assertion descriptions to gomega matchers.",
15651565
"type": "boolean",
15661566
"default": false
1567+
},
1568+
"force-tonot": {
1569+
"description": "Force using `ToNot`, `ShouldNot` instead of `To(Not())`.",
1570+
"type": "boolean",
1571+
"default": false
15671572
}
15681573
}
15691574
},

pkg/config/linters_settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ type GinkgoLinterSettings struct {
478478
ForbidSpecPollution bool `mapstructure:"forbid-spec-pollution"`
479479
ForceSucceedForFuncs bool `mapstructure:"force-succeed"`
480480
ForceAssertionDescription bool `mapstructure:"force-assertion-description"`
481+
ForeToNot bool `mapstructure:"force-tonot"`
481482
}
482483

483484
type GoChecksumTypeSettings struct {

pkg/golinters/ginkgolinter/ginkgolinter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func New(settings *config.GinkgoLinterSettings) *goanalysis.Linter {
2626
ForbidSpecPollution: settings.ForbidSpecPollution,
2727
ForceSucceedForFuncs: settings.ForceSucceedForFuncs,
2828
ForceAssertionDescription: settings.ForceAssertionDescription,
29+
ForeToNot: settings.ForeToNot,
2930
}
3031
}
3132

0 commit comments

Comments
 (0)