mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated Directive (markdown)
@@ -9,6 +9,6 @@ The only supported directive is `disable`:
|
|||||||
|
|
||||||
# shellcheck disable=code[,code...]
|
# shellcheck disable=code[,code...]
|
||||||
|
|
||||||
Directives are scoped to the structure that follows it. For example, before a function it silences all warnings in the function. Before a case statement, it silences all warnings.
|
Directives are scoped to the structure that follows it. For example, before a function it silences all warnings in the function. Before a case statement, it silences all warnings in all branches of the case statement.
|
||||||
|
|
||||||
Silencing parser errors is purely cosmetic, and will not make ShellCheck continue.
|
Silencing parser errors is purely cosmetic, and will not make ShellCheck continue.
|
Reference in New Issue
Block a user