From 1012c10d305a7b1b436b215aba2c271ae12b63ac Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Nov 2021 02:02:50 +0100 Subject: [PATCH] build(deps): bump github.com/nakabonne/nestif from 0.3.0 to 0.3.1 (#2325) Co-authored-by: Fernandez Ludovic --- go.mod | 2 +- go.sum | 4 ++-- test/testdata/nestif.go | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 452ade2f2753..57318d59d24c 100644 --- a/go.mod +++ b/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 diff --git a/go.sum b/go.sum index 549692617f1f..38d35d7e1925 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/test/testdata/nestif.go b/test/testdata/nestif.go index d63df75c74ea..6c111b252aa5 100644 --- a/test/testdata/nestif.go +++ b/test/testdata/nestif.go @@ -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 } }