diff --git a/SC1125.md b/SC1125.md index 292e083..0be4b3f 100644 --- a/SC1125.md +++ b/SC1125.md @@ -1 +1,20 @@ -See [the Directive page](Directive) about how to properly [format a shellcheck directive](Directive#documenting-directive-use). \ No newline at end of file +## Invalid key=value pair in directive + +### Problematic code: + +```sh +# shellcheck disable=SC2153 (variable not a misspelling) +``` + +### Correct code: + +```sh +# 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](Directive#documenting-directive-use) +contains more guidance about commenting style. \ No newline at end of file