mirror of
https://github.com/mgechev/revive.git
synced 2025-11-25 22:12:38 +02:00
refactor: rename files to follow Go convention
This commit is contained in:
committed by
chavacava
parent
c0d4d07ab6
commit
be95bfa705
67
testdata/max_control_nesting.go
vendored
Normal file
67
testdata/max_control_nesting.go
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
package fixtures
|
||||
|
||||
func mcn() {
|
||||
if true {
|
||||
if true {
|
||||
if true { // MATCH /control flow nesting exceeds 2/
|
||||
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if true {
|
||||
if true { // MATCH /control flow nesting exceeds 2/
|
||||
if true {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for {
|
||||
if true {
|
||||
for { // MATCH /control flow nesting exceeds 2/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch {
|
||||
case false:
|
||||
if true {
|
||||
|
||||
}
|
||||
case true:
|
||||
if true {
|
||||
for { // MATCH /control flow nesting exceeds 2/
|
||||
}
|
||||
}
|
||||
default:
|
||||
}
|
||||
|
||||
select {
|
||||
case msg1 := <-c1:
|
||||
println("received", msg1)
|
||||
case msg2 := <-c2:
|
||||
if true {
|
||||
for { // MATCH /control flow nesting exceeds 2/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if true {
|
||||
f1 := func() {
|
||||
if true {
|
||||
for {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
f1 := func() {
|
||||
for {
|
||||
if true {
|
||||
for { // MATCH /control flow nesting exceeds 2/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user