
ed64e33c8c8bc9a919e2b85a1a08225b5ae59d70. Also add tests for local mode of goimports and do refactoring of tests.
17 lines
461 B
Go
17 lines
461 B
Go
//args: -Egocyclo --gocyclo.min-complexity=20
|
|
package testdata
|
|
|
|
func GocycloBigComplexity(s string) { // ERROR "cyclomatic complexity .* of func .* is high .*"
|
|
if s == "1" || s == "2" || s == "3" || s == "4" || s == "5" || s == "6" || s == "7" {
|
|
return
|
|
}
|
|
|
|
if s == "1" || s == "2" || s == "3" || s == "4" || s == "5" || s == "6" || s == "7" {
|
|
return
|
|
}
|
|
|
|
if s == "1" || s == "2" || s == "3" || s == "4" || s == "5" || s == "6" || s == "7" {
|
|
return
|
|
}
|
|
}
|