github.com/songshiyun/revive@v1.1.5-0.20220323112655-f8433a19b3c5/testdata/flag-param.go (about)

     1  package fixtures
     2  
     3  func foo(a bool, b int) { // MATCH /parameter 'a' seems to be a control flag, avoid control coupling/
     4  	if a {
     5  
     6  	}
     7  }
     8  
     9  func foo(a bool, b int) {
    10  	str := mystruct{a, b}
    11  }