Skip to content

Commit f8010b0

Browse files
build(deps): bump github.com/nunnatsa/ginkgolinter from 0.19.1 to 0.20.0 (#5932)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 1f65794 commit f8010b0

File tree

6 files changed

+32
-21
lines changed

6 files changed

+32
-21
lines changed

.golangci.next.reference.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,10 @@ linters:
626626
# Default: false
627627
force-succeed: true
628628

629+
# Force adding assertion descriptions to gomega matchers.
630+
# Default: false
631+
force-assertion-description: true
632+
629633
gochecksumtype:
630634
# Presence of `default` case in switch statements satisfies exhaustiveness, if all members are not listed.
631635
# Default: true

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ require (
8888
github.com/nakabonne/nestif v0.3.1
8989
github.com/nishanths/exhaustive v0.12.0
9090
github.com/nishanths/predeclared v0.2.2
91-
github.com/nunnatsa/ginkgolinter v0.19.1
91+
github.com/nunnatsa/ginkgolinter v0.20.0
9292
github.com/pelletier/go-toml/v2 v2.2.4
9393
github.com/polyfloyd/go-errorlint v1.8.0
9494
github.com/quasilyte/go-ruleguard/dsl v0.3.22
@@ -213,7 +213,7 @@ require (
213213
go.uber.org/multierr v1.6.0 // indirect
214214
go.uber.org/zap v1.24.0 // indirect
215215
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
216-
golang.org/x/exp/typeparams v0.0.0-20250210185358-939b2ce775ac // indirect
216+
golang.org/x/exp/typeparams v0.0.0-20250620022241-b7579e27df2b // indirect
217217
golang.org/x/text v0.26.0 // indirect
218218
google.golang.org/protobuf v1.36.6 // indirect
219219
gopkg.in/ini.v1 v1.67.0 // 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
@@ -1509,6 +1509,11 @@
15091509
"description": "Force using the Succeed matcher for error functions, and the HaveOccurred matcher for non-function error values.",
15101510
"type": "boolean",
15111511
"default": false
1512+
},
1513+
"force-assertion-description": {
1514+
"description": "Force adding assertion descriptions to gomega matchers.",
1515+
"type": "boolean",
1516+
"default": false
15121517
}
15131518
}
15141519
},

pkg/config/linters_settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ type GinkgoLinterSettings struct {
466466
ValidateAsyncIntervals bool `mapstructure:"validate-async-intervals"`
467467
ForbidSpecPollution bool `mapstructure:"forbid-spec-pollution"`
468468
ForceSucceedForFuncs bool `mapstructure:"force-succeed"`
469+
ForceAssertionDescription bool `mapstructure:"force-assertion-description"`
469470
}
470471

471472
type GoChecksumTypeSettings struct {

pkg/golinters/ginkgolinter/ginkgolinter.go

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,30 @@ package ginkgolinter
22

33
import (
44
"github.com/nunnatsa/ginkgolinter"
5-
"github.com/nunnatsa/ginkgolinter/types"
5+
glconfig "github.com/nunnatsa/ginkgolinter/config"
66

77
"github.com/golangci/golangci-lint/v2/pkg/config"
88
"github.com/golangci/golangci-lint/v2/pkg/goanalysis"
99
)
1010

1111
func New(settings *config.GinkgoLinterSettings) *goanalysis.Linter {
12-
cfg := &types.Config{}
12+
cfg := &glconfig.Config{}
1313

1414
if settings != nil {
15-
cfg = &types.Config{
16-
SuppressLen: settings.SuppressLenAssertion,
17-
SuppressNil: settings.SuppressNilAssertion,
18-
SuppressErr: settings.SuppressErrAssertion,
19-
SuppressCompare: settings.SuppressCompareAssertion,
20-
SuppressAsync: settings.SuppressAsyncAssertion,
21-
ForbidFocus: settings.ForbidFocusContainer,
22-
SuppressTypeCompare: settings.SuppressTypeCompareWarning,
23-
AllowHaveLen0: settings.AllowHaveLenZero,
24-
ForceExpectTo: settings.ForceExpectTo,
25-
ValidateAsyncIntervals: settings.ValidateAsyncIntervals,
26-
ForbidSpecPollution: settings.ForbidSpecPollution,
27-
ForceSucceedForFuncs: settings.ForceSucceedForFuncs,
15+
cfg = &glconfig.Config{
16+
SuppressLen: settings.SuppressLenAssertion,
17+
SuppressNil: settings.SuppressNilAssertion,
18+
SuppressErr: settings.SuppressErrAssertion,
19+
SuppressCompare: settings.SuppressCompareAssertion,
20+
SuppressAsync: settings.SuppressAsyncAssertion,
21+
ForbidFocus: settings.ForbidFocusContainer,
22+
SuppressTypeCompare: settings.SuppressTypeCompareWarning,
23+
AllowHaveLen0: settings.AllowHaveLenZero,
24+
ForceExpectTo: settings.ForceExpectTo,
25+
ValidateAsyncIntervals: settings.ValidateAsyncIntervals,
26+
ForbidSpecPollution: settings.ForbidSpecPollution,
27+
ForceSucceedForFuncs: settings.ForceSucceedForFuncs,
28+
ForceAssertionDescription: settings.ForceAssertionDescription,
2829
}
2930
}
3031

0 commit comments

Comments
 (0)