1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-29 22:28:23 +02:00
Files
revive/testdata/enforce_switch_style_allow_no_default.go

19 lines
246 B
Go
Raw Normal View History

package fixtures
func enforceSwitchStyle() {
switch expression {
case condition:
default:
}
switch expression {
default: // MATCH /default case clause must be the last one/
case condition:
}
switch expression {
case condition:
}
}