mirror of
https://github.com/mgechev/revive.git
synced 2025-07-15 01:04:40 +02:00
19 lines
297 B
Go
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:
|
|
}
|
|
}
|