web-platform-tests / results-collection

Other
41 stars 46 forks source link

Consider using shellcheck to lint .sh files #652

Open zcorpan opened 5 years ago

zcorpan commented 5 years ago

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