1
0
mirror of https://github.com/mgechev/revive.git synced 2025-05-19 22:03:20 +02:00
revive/testdata/flag_param.go

20 lines
293 B
Go
Raw Normal View History

package fixtures
func fooFlagP(a bool, b int) { // MATCH /parameter 'a' seems to be a control flag, avoid control coupling/
if a {
}
}
func barFlagP(a bool, b int) {
str := mystruct{a, b}
}
// issue #1211
func bazFlagP(a int, b bool) {
lBool := true
if lBool {
// do something
}
}