1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-21 17:16:40 +02:00
revive/testdata/flag_param.go
2024-11-11 19:31:18 +01:00

12 lines
186 B
Go

package fixtures
func foo(a bool, b int) { // MATCH /parameter 'a' seems to be a control flag, avoid control coupling/
if a {
}
}
func foo(a bool, b int) {
str := mystruct{a, b}
}