From a8ee77b7dc4d8f9ceeb24d71e1863ac9d20886fd Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Tue, 29 Jul 2025 10:35:30 +0900 Subject: [PATCH] Updated SC2317 (markdown) --- SC2317.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SC2317.md b/SC2317.md index 92afb80..3279cb8 100644 --- a/SC2317.md +++ b/SC2317.md @@ -39,7 +39,7 @@ ShellCheck may incorrectly believe that code is unreachable if it's invoked by v Note in particular that since unreachable commands may come in clusters, it's useful to use ShellCheck's filewide or functionwide ignore directives. A `disable` directive before a function ignores the entire function: -``` +```sh #!/bin/bash ... # shellcheck disable=SC2317 # Don't warn about unreachable commands in this function @@ -52,7 +52,7 @@ exit 0 ``` A disable directive after the shebang, before any commands, will ignore the entire file: -``` +```sh #!/bin/bash # Test script #1 # shellcheck disable=SC2317 # Don't warn about unreachable commands in this file