A tool to easily bind shellcheck and shfmt to your CI, so your shellscripts can be checked.
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. We appreciate your contribution. Please refer to our contributing guidelines.
Just add it to your travis.yml:
script:
- curl -sL https://git.io/shcheck | bash -s
You can also pass files and folders to be ignored, like this:
script:
- curl -sL https://git.io/shcheck | bash -s -f -- --ignore=somefile.sh --ignore='folder/**/*'
Or with Docker:
docker run --rm -v `pwd`:/scripts --workdir=/scripts caarlos0/shcheck