1
0
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:
Oleksandr Redko
2024-11-11 13:39:10 +02:00
committed by chavacava
parent c0d4d07ab6
commit be95bfa705
299 changed files with 181 additions and 178 deletions

67
testdata/max_control_nesting.go vendored Normal file
View 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/
}
}
}
}
}