From ad596391e28f295cfb00215b1cc4e1235e15ca15 Mon Sep 17 00:00:00 2001 From: Nahshon Unna-Tsameret Date: Mon, 28 Aug 2023 10:24:07 +0300 Subject: [PATCH] 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 --- .golangci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 0120b9c289cc..7ae12dbac748 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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;