build(deps): bump github.com/nakabonne/nestif from 0.3.0 to 0.3.1 (#2325)
Co-authored-by: Fernandez Ludovic <lfernandez.dev@gmail.com>
This commit is contained in:
parent
5adafe52d9
commit
1012c10d30
2
go.mod
2
go.mod
@ -57,7 +57,7 @@ require (
|
||||
github.com/mitchellh/go-homedir v1.1.0
|
||||
github.com/mitchellh/go-ps v1.0.0
|
||||
github.com/moricho/tparallel v0.2.1
|
||||
github.com/nakabonne/nestif v0.3.0
|
||||
github.com/nakabonne/nestif v0.3.1
|
||||
github.com/nishanths/exhaustive v0.2.3
|
||||
github.com/nishanths/predeclared v0.2.1
|
||||
github.com/pkg/errors v0.9.1
|
||||
|
4
go.sum
generated
4
go.sum
generated
@ -542,8 +542,8 @@ github.com/mozilla/tls-observatory v0.0.0-20210609171429-7bc42856d2e5/go.mod h1:
|
||||
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
||||
github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007/go.mod h1:m2XC9Qq0AlmmVksL6FktJCdTYyLk7V3fKyp0sl1yWQo=
|
||||
github.com/mwitkow/go-proto-validators v0.2.0/go.mod h1:ZfA1hW+UH/2ZHOWvQ3HnQaU0DtnpXu850MZiy+YUgcc=
|
||||
github.com/nakabonne/nestif v0.3.0 h1:+yOViDGhg8ygGrmII72nV9B/zGxY188TYpfolntsaPw=
|
||||
github.com/nakabonne/nestif v0.3.0/go.mod h1:dI314BppzXjJ4HsCnbo7XzrJHPszZsjnk5wEBSYHI2c=
|
||||
github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U=
|
||||
github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE=
|
||||
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 h1:4kuARK6Y6FxaNu/BnU2OAaLF86eTVhP2hjTB6iMvItA=
|
||||
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod h1:KSVJerMDfblTH7p5MZaTt+8zaT2iEk3AkVb9PQdZuE8=
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
|
||||
|
10
test/testdata/nestif.go
vendored
10
test/testdata/nestif.go
vendored
@ -5,19 +5,19 @@ package testdata
|
||||
func _() {
|
||||
var b1, b2, b3, b4 bool
|
||||
|
||||
if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 1\\)"
|
||||
if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 1\\)"
|
||||
if b2 { // +1
|
||||
}
|
||||
}
|
||||
|
||||
if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 3\\)"
|
||||
if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 3\\)"
|
||||
if b2 { // +1
|
||||
if b3 { // +2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 5\\)"
|
||||
if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 5\\)"
|
||||
if b2 { // +1
|
||||
} else if b3 { // +1
|
||||
if b4 { // +2
|
||||
@ -26,7 +26,7 @@ func _() {
|
||||
}
|
||||
}
|
||||
|
||||
if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 9\\)"
|
||||
if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 9\\)"
|
||||
if b2 { // +1
|
||||
if b3 { // +2
|
||||
}
|
||||
@ -40,7 +40,7 @@ func _() {
|
||||
}
|
||||
}
|
||||
|
||||
if b1 == b2 == b3 { // ERROR "`if b1 == b2 == b3` is deeply nested \\(complexity: 1\\)"
|
||||
if b1 == b2 == b3 { // ERROR "`if b1 == b2 == b3` has complex nested blocks \\(complexity: 1\\)"
|
||||
if b4 { // +1
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user