Skip to content

Commit

Permalink
ginkgolinter: forbid focus container
Browse files Browse the repository at this point in the history
Enable the new ginkgolinter rule to disallow using of focus containers
(e.g. `FIt`, `FContext` and so on). This will prevent leaking of debug
code from a local debug environment to the code base.

See more info here: https://github.com/nunnatsa/ginkgolinter#focus-container--focus-individual-spec-found-bug

Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
  • Loading branch information
nunnatsa committed Aug 28, 2023
1 parent f28fc73 commit ad59639
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ linters:
linters-settings:
gci:
local-prefixes: "sigs.k8s.io/cluster-api"
ginkgolinter:
forbid-focus-container: true
godot:
# declarations - for top level declaration comments (default);
# toplevel - for top level comments;
Expand Down

0 comments on commit ad59639

Please sign in to comment.