Buildkite provides a
plugin dedicated to run shellcheck
.
Simply add this step to your Buildkite pipeline
(.buildkite/pipeline.yml
) to use it:
steps:
- label: ":shell: Shellcheck"
plugins:
shellcheck#v1.1.2:
# List the files you want to lint
files: ["**/*.sh"]
# additional options to pass to shellcheck (optional)
options: ["-x", "-P", "SCRIPTDIR"]
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.