Created SC1085 (markdown)

Grische
2025-07-30 16:22:19 +02:00
parent 39bc5c480a
commit 25e3f305de

22
SC1085.md Normal file

@@ -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.