From e2467d87b65ad9050bea022a2d514172520e48f3 Mon Sep 17 00:00:00 2001 From: Kenichi Omichi Date: Wed, 16 Dec 2020 21:53:44 +0000 Subject: [PATCH] Exclude .git/ from shellcheck If a branch name contains '.sh', current shellcheck checks the branch file under .git/ and outputs error because the format is not shell script one. This makes shellcheck exclude files under .git/ to avoid this issue. --- .gitlab-ci/shellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/shellcheck.yml b/.gitlab-ci/shellcheck.yml index bf8cae43c..ca9e4324e 100644 --- a/.gitlab-ci/shellcheck.yml +++ b/.gitlab-ci/shellcheck.yml @@ -12,5 +12,5 @@ shellcheck: - shellcheck --version script: # Run shellcheck for all *.sh except contrib/ - - find . -name '*.sh' -not -path './contrib/*' | xargs shellcheck --severity error + - find . -name '*.sh' -not -path './contrib/*' -not -path './.git/*' | xargs shellcheck --severity error except: ['triggers', 'master']