Skip to content

Commit

Permalink
Exclude .git/ from shellcheck
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kenichi Omichi committed Dec 16, 2020
1 parent f0c7649 commit e2467d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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']

0 comments on commit e2467d8

Please sign in to comment.