From 25e3f305de87f752865d78ddd34322469da61975 Mon Sep 17 00:00:00 2001 From: Grische <2787581+grische@users.noreply.github.com> Date: Wed, 30 Jul 2025 16:22:19 +0200 Subject: [PATCH] Created SC1085 (markdown) --- SC1085.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 SC1085.md diff --git a/SC1085.md b/SC1085.md new file mode 100644 index 0000000..4fc2f16 --- /dev/null +++ b/SC1085.md @@ -0,0 +1,22 @@ +## Did you forget to move the ;; after extending this case item? + +### Problematic code: + +```bash +case $options in + foobar) echo foo ;; echo bar;; + *) echo unknown option ;; +esac +``` + +### Correct code: + +```bash +case $options in + foobar) echo foo ; echo bar;; + *) echo unknown option ;; +esac +``` + +### Rationale: +There should be no statements between `;;` and the next case item. \ No newline at end of file