Skip to content
Joachim Ansorg edited this page Nov 12, 2021 · 4 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

Invalid key=value pair in directive

Problematic code:

# shellcheck disable=SC2153 (variable not a misspelling)

Correct code:

# shellcheck disable=SC2153 # variable not a misspelling

Rationale:

A comment at the end of a directive must be preceded by a # to avoid it being interpreted as an instruction. The directive page contains more guidance about commenting style.