mirror of
https://github.com/mgechev/revive.git
synced 2025-11-29 22:28:23 +02:00
19 lines
246 B
Go
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:
|
||
|
|
}
|
||
|
|
}
|