Skip to content
Avalir1996 edited this page Feb 6, 2024 · 1 revision

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 {} +"

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