Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Consider using shellcheck to lint .sh files #652

Open
zcorpan opened this issue Feb 18, 2019 · 0 comments
Open

Consider using shellcheck to lint .sh files #652

zcorpan opened this issue Feb 18, 2019 · 0 comments

Comments

@zcorpan
Copy link
Member

zcorpan commented Feb 18, 2019

See https://github.com/koalaman/shellcheck

This is installed on Travis CI already, the following command runs the check on all .sh files and gives an exit code indicating success or failure:

for file in $(find path/to/scripts -type f -name "*.sh"); do shellcheck --format=gcc $file; done;

https://github.com/koalaman/shellcheck/wiki/Recursiveness

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

No branches or pull requests

1 participant