Skip to content

Commit b236636

Browse files
committed
chore: update configuration
1 parent 8ef11ef commit b236636

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.golangci.reference.yml

+4
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

pkg/config/linters_settings.go

+1
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

+1
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)