mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Add documentation for integrating shellcheck with Buildkite
14
Buildkite.md
Normal file
14
Buildkite.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Buildkite provides [a plugin dedicated to run `shellcheck`](https://github.com/buildkite-plugins/shellcheck-buildkite-plugin).
|
||||||
|
|
||||||
|
Simply add this step to your Buildkite pipeline (`.buildkite/pipeline.yml`) to use it:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
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"]
|
||||||
|
```
|
Reference in New Issue
Block a user