Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broaden scope of shellcheck? #102

Open
bmorcos opened this issue Apr 16, 2020 · 0 comments
Open

Broaden scope of shellcheck? #102

bmorcos opened this issue Apr 16, 2020 · 0 comments

Comments

@bmorcos
Copy link
Contributor

bmorcos commented Apr 16, 2020

I noticed this because in the hardware repos I am using a custom static.sh based on the default template.

The shellcheck line in the static.sh template is currently:

exe shellcheck -e SC2087 .ci/*.sh

I have other shell scripts in the hardware repos so I started using something like this to evaluate all scripts in the repo:

exe find . -type f -name '*.sh' -exec shellcheck -e SC2087 {} \;

You could also exclude specific directories:

exe find . \( -path ./dir1 -o -path ./dir2 \) -prune -o -type f -name '*.sh' -exec shellcheck -e SC2087 {} \;

Not sure if this is too esoteric or if other repos would benefit for this, but figured I'd drop it here for discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant