mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
test: add default case when no arguments provided to a rule (#1140)
This commit is contained in:
16
testdata/max_control_nesting_default.go
vendored
Normal file
16
testdata/max_control_nesting_default.go
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
package fixtures
|
||||
|
||||
func mcn() {
|
||||
if true {
|
||||
if true {
|
||||
if true {
|
||||
if true {
|
||||
if true {
|
||||
if true { // MATCH /control flow nesting exceeds 5/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user