A Buildkite plugin that runs shellcheck against your shell scripts using the koalaman/shellcheck docker image.
This will check all shellscripts with shellcheck.
steps:
- plugins:
- shellcheck#v1.4.0:
files: scripts/*.sh
The files (or globs) to run shellcheck on.
Enable using extended glob patterns, e.g. *.+(sh|bash)
Default: false
Enable using recursive globbing, e.g. **/*.sh
Note: requires at least Bash 4 on the Buildkite Agent
Default: false
Command line options to pass to shellcheck.
Default: "--color=always"
Version of docker image to use.
Default: latest
Which shell check image to use.
Default: koalaman/shellcheck
To run the tests:
docker-compose run --rm tests bats tests
MIT (see LICENSE)