Commit 1582af7 2 people authored and committed
1 parent bf500b4 commit 1582af7 Copy full SHA for 1582af7
File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ require (
57
57
github.com/mitchellh/go-homedir v1.1.0
58
58
github.com/mitchellh/go-ps v1.0.0
59
59
github.com/moricho/tparallel v0.2.1
60
- github.com/nakabonne/nestif v0.3.0
60
+ github.com/nakabonne/nestif v0.3.1
61
61
github.com/nishanths/exhaustive v0.2.3
62
62
github.com/nishanths/predeclared v0.2.1
63
63
github.com/pkg/errors v0.9.1
Original file line number Diff line number Diff line change @@ -5,19 +5,19 @@ package testdata
5
5
func _ () {
6
6
var b1 , b2 , b3 , b4 bool
7
7
8
- if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 1\\)"
8
+ if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 1\\)"
9
9
if b2 { // +1
10
10
}
11
11
}
12
12
13
- if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 3\\)"
13
+ if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 3\\)"
14
14
if b2 { // +1
15
15
if b3 { // +2
16
16
}
17
17
}
18
18
}
19
19
20
- if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 5\\)"
20
+ if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 5\\)"
21
21
if b2 { // +1
22
22
} else if b3 { // +1
23
23
if b4 { // +2
@@ -26,7 +26,7 @@ func _() {
26
26
}
27
27
}
28
28
29
- if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 9\\)"
29
+ if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 9\\)"
30
30
if b2 { // +1
31
31
if b3 { // +2
32
32
}
@@ -40,7 +40,7 @@ func _() {
40
40
}
41
41
}
42
42
43
- if b1 == b2 == b3 { // ERROR "`if b1 == b2 == b3` is deeply nested \\(complexity: 1\\)"
43
+ if b1 == b2 == b3 { // ERROR "`if b1 == b2 == b3` has complex nested blocks \\(complexity: 1\\)"
44
44
if b4 { // +1
45
45
}
46
46
}
You can’t perform that action at this time.
0 commit comments