ShellCheck directives are improperly positioned within individual case statement branches, rendering them ineffective. To resolve this, move the directive to either encompass the entire case statement or place it directly before a specific command within a branch.