Skip to content

Commit

Permalink
build(deps): bump github.com/nunnatsa/ginkgolinter from 0.12.2 to 0.1…
Browse files Browse the repository at this point in the history
…3.0 (#3962)

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and ldez committed Jul 20, 2023
1 parent 67dd65f commit 91afddc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .golangci.reference.yml
Expand Up @@ -449,6 +449,10 @@ linters-settings:
# Default: false
suppress-async-assertion: true

# Suppress warning for ginkgo focus containers like FDescribe, FContext, FWhen or FIt
# Default: false
suppress-focus-container: true

# Don't trigger warnings for HaveLen(0)
# Default: false
allow-havelen-zero: true
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -77,7 +77,7 @@ require (
github.com/nakabonne/nestif v0.3.1
github.com/nishanths/exhaustive v0.11.0
github.com/nishanths/predeclared v0.2.2
github.com/nunnatsa/ginkgolinter v0.12.2
github.com/nunnatsa/ginkgolinter v0.13.0
github.com/polyfloyd/go-errorlint v1.4.3
github.com/quasilyte/go-ruleguard/dsl v0.3.22
github.com/ryancurrah/gomodguard v1.3.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/config/linters_settings.go
Expand Up @@ -396,6 +396,7 @@ type GinkgoLinterSettings struct {
SuppressErrAssertion bool `mapstructure:"suppress-err-assertion"`
SuppressCompareAssertion bool `mapstructure:"suppress-compare-assertion"`
SuppressAsyncAssertion bool `mapstructure:"suppress-async-assertion"`
SuppressFocusContainer bool `mapstructure:"suppress-focus-container"`
AllowHaveLenZero bool `mapstructure:"allow-havelen-zero"`
}

Expand Down
1 change: 1 addition & 0 deletions pkg/golinters/ginkgolinter.go
Expand Up @@ -19,6 +19,7 @@ func NewGinkgoLinter(cfg *config.GinkgoLinterSettings) *goanalysis.Linter {
"suppress-err-assertion": cfg.SuppressErrAssertion,
"suppress-compare-assertion": cfg.SuppressCompareAssertion,
"suppress-async-assertion": cfg.SuppressAsyncAssertion,
"suppress-focus-container": cfg.SuppressFocusContainer,
"allow-havelen-0": cfg.AllowHaveLenZero,
}
}
Expand Down

0 comments on commit 91afddc

Please sign in to comment.