Skip to content

Commit ad59639

Browse files
committed
ginkgolinter: forbid focus container
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 <[email protected]>
1 parent f28fc73 commit ad59639

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ linters:
5959
linters-settings:
6060
gci:
6161
local-prefixes: "sigs.k8s.io/cluster-api"
62+
ginkgolinter:
63+
forbid-focus-container: true
6264
godot:
6365
# declarations - for top level declaration comments (default);
6466
# toplevel - for top level comments;

0 commit comments

Comments
 (0)