ci/shellcheck.sh now only audits files that git knows about (#6815)

This commit is contained in:
Michael Vines 2019-11-08 10:25:59 -07:00 committed by GitHub
parent cd5ec8cd35
commit f8e64aad5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -6,13 +6,7 @@ set -e
cd "$(dirname "$0")/.."
(
set -x
find . -name "*.sh" \
-not -regex ".*/ci/semver_bash/.*" \
-not -regex ".*/.cargo/.*" \
-not -regex ".*/node_modules/.*" \
-not -regex ".*/target/.*" \
-print0 \
| xargs -0 \
ci/docker-run.sh koalaman/shellcheck --color=always --external-sources --shell=bash
git ls-files -- '*.sh' ':(exclude)ci/semver_bash' \
| xargs ci/docker-run.sh koalaman/shellcheck --color=always --external-sources --shell=bash
)
echo --- ok