File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ require (
5757 github.com/mitchellh/go-homedir v1.1.0
5858 github.com/mitchellh/go-ps v1.0.0
5959 github.com/moricho/tparallel v0.2.1
60- github.com/nakabonne/nestif v0.3.0
60+ github.com/nakabonne/nestif v0.3.1
6161 github.com/nishanths/exhaustive v0.2.3
6262 github.com/nishanths/predeclared v0.2.1
6363 github.com/pkg/errors v0.9.1
Original file line number Diff line number Diff line change @@ -5,19 +5,19 @@ package testdata
55func _ () {
66 var b1 , b2 , b3 , b4 bool
77
8- if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 1\\)"
8+ if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 1\\)"
99 if b2 { // +1
1010 }
1111 }
1212
13- if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 3\\)"
13+ if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 3\\)"
1414 if b2 { // +1
1515 if b3 { // +2
1616 }
1717 }
1818 }
1919
20- if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 5\\)"
20+ if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 5\\)"
2121 if b2 { // +1
2222 } else if b3 { // +1
2323 if b4 { // +2
@@ -26,7 +26,7 @@ func _() {
2626 }
2727 }
2828
29- if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 9\\)"
29+ if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 9\\)"
3030 if b2 { // +1
3131 if b3 { // +2
3232 }
@@ -40,7 +40,7 @@ func _() {
4040 }
4141 }
4242
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\\)"
4444 if b4 { // +1
4545 }
4646 }
You can’t perform that action at this time.
0 commit comments