Browse Source

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.
pull/7048/head
Kenichi Omichi 3 years ago
parent
commit
e2467d87b6
1 changed files with 1 additions and 1 deletions
  1. 2
      .gitlab-ci/shellcheck.yml

2
.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']
Loading…
Cancel
Save