From ab7527ac8fedd922ff96ab937bad2ed77fe02284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Thu, 28 Sep 2023 20:37:53 +0000 Subject: [PATCH] Improve double space search --- .github/workflows/reusable-integrity.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-integrity.yml b/.github/workflows/reusable-integrity.yml index c9d9ab3..8a2a07a 100644 --- a/.github/workflows/reusable-integrity.yml +++ b/.github/workflows/reusable-integrity.yml @@ -88,9 +88,9 @@ jobs: - name: "Look for multiple space characters in the middle of the line 🐌" run: | - # Exclude docblocks + # Exclude comment lines and docblocks ! git grep --perl-regexp --line-number -I \ - -e '(?!^#)\S\s\s' --and --not -e ' \* @' \ + -e '\S\s\s' --and --not -e '^(#|//)' --and --not -e ' \* @' \ -- ':!:*.lock' ':!:*.md' ':!:.github/**.yml' - # Move TODO-s into GitHub issues!