Skip to content

Commit

Permalink
brave-missing-break-in-switch.yaml: NOTREACHED() remove
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Sep 13, 2024
1 parent fb65623 commit 955d07d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,10 @@ rules:
switch ($VAR) { case $VAL1: NOTREACHED_IN_MIGRATION(); case $VAL2: ... }
- pattern-not: |
switch ($VAR) { case $VAL1: ... NOTREACHED_IN_MIGRATION(); case $VAL2: ... }
# NOTREACHED
- pattern-not: |
switch ($VAR) { case $VAL1: NOTREACHED(); case $VAL2: ... }
- pattern-not: |
switch ($VAR) { case $VAL1: ... NOTREACHED(); case $VAL2: ... }
# [[fallthrough]];
- pattern-not-regex: '\[\[fallthrough\]\];'

0 comments on commit 955d07d

Please sign in to comment.