ShellCheck Directive Placement Medium

ShellCheck directives must be placed before complete commands like if, while, or function definitions. Applying directives to parts of commands, such as elif or else blocks, is incorrect. Move the directive to the nearest preceding complete command to ensure proper functionality.

Detector ID
shell/shellcheck-directive-placement@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-