Skip to content

Commit b5eb69a

Browse files
committed
🌱 (chore): enable ginkgolinter forbid-focus-container
🌱 enable ginkgolinter forbid-focus-container This PR adds the following configuration to `.golangci.yml`: ```yaml linters-settings: ginkgolinter: forbid-focus-container: true ``` Enabling forbid-focus-container protects the code in the repository against accident commiting of debug code. A contributeor may use ginkgo's focus container (e.g. `FIt`, `FContext` etc. or by adding the `Focus` decorator), in order to locally debug a specific test. Merging a ginkgo's focus container will prevent running of all the other tests in CI. Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
1 parent 4fe3c28 commit b5eb69a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.golangci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ linters-settings:
6363
- name: bool-literal-in-expr
6464
- name: constant-logical-expr
6565
- name: comment-spacings
66-
66+
ginkgolinter:
67+
forbid-focus-container: true
6768
linters:
6869
disable-all: true
6970
enable:

0 commit comments

Comments
 (0)