Skip to content
John Gardner edited this page Dec 22, 2021 · 3 revisions

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature above to find a specific one, or see Checks.

Clone this wiki locally

For a basic configuration, place the following in your .drone.yml:

---
kind: pipeline
type: docker
name: default

steps:
  - name: shellcheck
    image: koalaman/shellcheck-alpine:stable
    commands:
      - "shellcheck testScript.sh"

To check all .sh files in the repo:

steps:
  - name: shellcheck
    image: koalaman/shellcheck-alpine:stable
    commands:
      - "find . -name *.sh -exec shellcheck {} +"