Skip to content

Commit 91afddc

Browse files
build(deps): bump github.com/nunnatsa/ginkgolinter from 0.12.2 to 0.13.0 (#3962)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent 67dd65f commit 91afddc

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

.golangci.reference.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,10 @@ linters-settings:
449449
# Default: false
450450
suppress-async-assertion: true
451451

452+
# Suppress warning for ginkgo focus containers like FDescribe, FContext, FWhen or FIt
453+
# Default: false
454+
suppress-focus-container: true
455+
452456
# Don't trigger warnings for HaveLen(0)
453457
# Default: false
454458
allow-havelen-zero: true

go.mod

Lines changed: 1 addition & 1 deletion
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.12.2
80+
github.com/nunnatsa/ginkgolinter v0.13.0
8181
github.com/polyfloyd/go-errorlint v1.4.3
8282
github.com/quasilyte/go-ruleguard/dsl v0.3.22
8383
github.com/ryancurrah/gomodguard v1.3.0

go.sum

Lines changed: 2 additions & 2 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ type GinkgoLinterSettings struct {
396396
SuppressErrAssertion bool `mapstructure:"suppress-err-assertion"`
397397
SuppressCompareAssertion bool `mapstructure:"suppress-compare-assertion"`
398398
SuppressAsyncAssertion bool `mapstructure:"suppress-async-assertion"`
399+
SuppressFocusContainer bool `mapstructure:"suppress-focus-container"`
399400
AllowHaveLenZero bool `mapstructure:"allow-havelen-zero"`
400401
}
401402

pkg/golinters/ginkgolinter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func NewGinkgoLinter(cfg *config.GinkgoLinterSettings) *goanalysis.Linter {
1919
"suppress-err-assertion": cfg.SuppressErrAssertion,
2020
"suppress-compare-assertion": cfg.SuppressCompareAssertion,
2121
"suppress-async-assertion": cfg.SuppressAsyncAssertion,
22+
"suppress-focus-container": cfg.SuppressFocusContainer,
2223
"allow-havelen-0": cfg.AllowHaveLenZero,
2324
}
2425
}

0 commit comments

Comments
 (0)