Inspectopedia
 
2024.3

'default' not last case in 'switch'

Warning
Code Style
New
Last modified: 03 December 2024

Reports a switch statement where the default case comes before another case instead of being the very last case, which may cause confusion.