4 SC1125
Joachim Ansorg edited this page 2021-11-12 19:10:55 +01:00

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.