Default severity: warning
Detect repeated switch branches.
Bad
switch value { case 1: run(); case 2: run() }Good
switch value { case 1: one(); case 2: two() }Detect repeated switch branches.
Default severity: warning
Detect repeated switch branches.
switch value { case 1: run(); case 2: run() }switch value { case 1: one(); case 2: two() }