1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00
Files
revive/testdata/enforce_switch_style_allow_no_default.go
2025-06-01 09:57:47 +02:00

19 lines
246 B
Go

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:
}
}