Skip to content

Commit 0e82ef5

Browse files
build(deps): bump github.com/nunnatsa/ginkgolinter from 0.13.5 to 0.14.0 (#4117)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent dd58dd5 commit 0e82ef5

File tree

5 files changed

+23
-17
lines changed

5 files changed

+23
-17
lines changed

Diff for: .golangci.reference.yml

+4
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,10 @@ linters-settings:
456456
# Default: false
457457
suppress-async-assertion: true
458458

459+
# Suppress warning for comparing values from different types, like int32 and uint32
460+
# Default: false
461+
suppress-type-compare-assertion: true
462+
459463
# Trigger warning for ginkgo focus containers like FDescribe, FContext, FWhen or FIt
460464
# Default: false
461465
forbid-focus-container: true

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ require (
7777
github.com/nakabonne/nestif v0.3.1
7878
github.com/nishanths/exhaustive v0.11.0
7979
github.com/nishanths/predeclared v0.2.2
80-
github.com/nunnatsa/ginkgolinter v0.13.5
80+
github.com/nunnatsa/ginkgolinter v0.14.0
8181
github.com/polyfloyd/go-errorlint v1.4.5
8282
github.com/quasilyte/go-ruleguard/dsl v0.3.22
8383
github.com/ryancurrah/gomodguard v1.3.0

Diff for: go.sum

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

Diff for: pkg/config/linters_settings.go

+8-7
Original file line numberDiff line numberDiff line change
@@ -394,13 +394,14 @@ type GciSettings struct {
394394
}
395395

396396
type GinkgoLinterSettings struct {
397-
SuppressLenAssertion bool `mapstructure:"suppress-len-assertion"`
398-
SuppressNilAssertion bool `mapstructure:"suppress-nil-assertion"`
399-
SuppressErrAssertion bool `mapstructure:"suppress-err-assertion"`
400-
SuppressCompareAssertion bool `mapstructure:"suppress-compare-assertion"`
401-
SuppressAsyncAssertion bool `mapstructure:"suppress-async-assertion"`
402-
ForbidFocusContainer bool `mapstructure:"forbid-focus-container"`
403-
AllowHaveLenZero bool `mapstructure:"allow-havelen-zero"`
397+
SuppressLenAssertion bool `mapstructure:"suppress-len-assertion"`
398+
SuppressNilAssertion bool `mapstructure:"suppress-nil-assertion"`
399+
SuppressErrAssertion bool `mapstructure:"suppress-err-assertion"`
400+
SuppressCompareAssertion bool `mapstructure:"suppress-compare-assertion"`
401+
SuppressAsyncAssertion bool `mapstructure:"suppress-async-assertion"`
402+
SuppressTypeCompareWarning bool `mapstructure:"suppress-type-compare-assertion"`
403+
ForbidFocusContainer bool `mapstructure:"forbid-focus-container"`
404+
AllowHaveLenZero bool `mapstructure:"allow-havelen-zero"`
404405
}
405406

406407
type GocognitSettings struct {

Diff for: pkg/golinters/ginkgolinter.go

+8-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ func NewGinkgoLinter(cfg *config.GinkgoLinterSettings) *goanalysis.Linter {
1414
cfgMap := make(map[string]map[string]any)
1515
if cfg != nil {
1616
cfgMap[a.Name] = map[string]any{
17-
"suppress-len-assertion": cfg.SuppressLenAssertion,
18-
"suppress-nil-assertion": cfg.SuppressNilAssertion,
19-
"suppress-err-assertion": cfg.SuppressErrAssertion,
20-
"suppress-compare-assertion": cfg.SuppressCompareAssertion,
21-
"suppress-async-assertion": cfg.SuppressAsyncAssertion,
22-
"forbid-focus-container": cfg.ForbidFocusContainer,
23-
"allow-havelen-0": cfg.AllowHaveLenZero,
17+
"suppress-len-assertion": cfg.SuppressLenAssertion,
18+
"suppress-nil-assertion": cfg.SuppressNilAssertion,
19+
"suppress-err-assertion": cfg.SuppressErrAssertion,
20+
"suppress-compare-assertion": cfg.SuppressCompareAssertion,
21+
"suppress-async-assertion": cfg.SuppressAsyncAssertion,
22+
"suppress-type-compare-assertion": cfg.SuppressTypeCompareWarning,
23+
"forbid-focus-container": cfg.ForbidFocusContainer,
24+
"allow-havelen-0": cfg.AllowHaveLenZero,
2425
}
2526
}
2627

0 commit comments

Comments
 (0)