1
0
mirror of https://github.com/mgechev/revive.git synced 2025-07-15 01:04:40 +02:00
Files
revive/testdata/enforce_switch_style.go
2025-06-01 09:57:47 +02:00

19 lines
297 B
Go

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