From 52793e78c213972989b8762d44aeba3ea81fc2a5 Mon Sep 17 00:00:00 2001
From: Nahshon Unna Tsameret <60659093+nunnatsa@users.noreply.github.com>
Date: Tue, 25 Jul 2023 13:33:58 +0300
Subject: [PATCH] build(deps): bump github.com/nunnatsa/ginkgolinter from
 0.13.0 to 0.13.3 (#3972)

---
 .golangci.reference.yml                                   | 4 ++--
 go.mod                                                    | 2 +-
 go.sum                                                    | 4 ++--
 pkg/config/linters_settings.go                            | 2 +-
 pkg/golinters/ginkgolinter.go                             | 2 +-
 .../configs/ginkgolinter_suppress_focused_containers.yml  | 2 +-
 test/testdata/ginkgolinter/ginkgolinter.go                | 8 ++++----
 test/testdata/ginkgolinter/ginkgolinter_havelen0.go       | 8 ++++----
 test/testdata/ginkgolinter/ginkgolinter_suppress_async.go | 8 ++++----
 .../ginkgolinter/ginkgolinter_suppress_compare.go         | 8 ++++----
 test/testdata/ginkgolinter/ginkgolinter_suppress_err.go   | 8 ++++----
 .../ginkgolinter_suppress_focused_containers.go           | 8 ++++----
 test/testdata/ginkgolinter/ginkgolinter_suppress_len.go   | 8 ++++----
 test/testdata/ginkgolinter/ginkgolinter_suppress_nil.go   | 8 ++++----
 14 files changed, 40 insertions(+), 40 deletions(-)

diff --git a/.golangci.reference.yml b/.golangci.reference.yml
index f7de593a..728179f3 100644
--- a/.golangci.reference.yml
+++ b/.golangci.reference.yml
@@ -449,9 +449,9 @@ linters-settings:
     # Default: false
     suppress-async-assertion: true
 
-    # Suppress warning for ginkgo focus containers like FDescribe, FContext, FWhen or FIt
+    # Trigger warning for ginkgo focus containers like FDescribe, FContext, FWhen or FIt
     # Default: false
-    suppress-focus-container: true
+    forbid-focus-container: true
 
     # Don't trigger warnings for HaveLen(0)
     # Default: false
diff --git a/go.mod b/go.mod
index 3593bb32..8b2ff58e 100644
--- a/go.mod
+++ b/go.mod
@@ -77,7 +77,7 @@ require (
 	github.com/nakabonne/nestif v0.3.1
 	github.com/nishanths/exhaustive v0.11.0
 	github.com/nishanths/predeclared v0.2.2
-	github.com/nunnatsa/ginkgolinter v0.13.0
+	github.com/nunnatsa/ginkgolinter v0.13.3
 	github.com/polyfloyd/go-errorlint v1.4.3
 	github.com/quasilyte/go-ruleguard/dsl v0.3.22
 	github.com/ryancurrah/gomodguard v1.3.0
diff --git a/go.sum b/go.sum
index 38ffd6ca..13a50e63 100644
--- a/go.sum
+++ b/go.sum
@@ -392,8 +392,8 @@ github.com/nishanths/exhaustive v0.11.0 h1:T3I8nUGhl/Cwu5Z2hfc92l0e04D2GEW6e0l8p
 github.com/nishanths/exhaustive v0.11.0/go.mod h1:RqwDsZ1xY0dNdqHho2z6X+bgzizwbLYOWnZbbl2wLB4=
 github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk=
 github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c=
-github.com/nunnatsa/ginkgolinter v0.13.0 h1:kvnXNJXKDcYXTlHsgsfc1dQNziWASXAtQ3xyExV3v6U=
-github.com/nunnatsa/ginkgolinter v0.13.0/go.mod h1:aTKXo8WddENYxNEFT+4ZxEgWXqlD9uMD3w9Bfw/ABEc=
+github.com/nunnatsa/ginkgolinter v0.13.3 h1:wEvjrzSMfDdnoWkctignX9QTf4rT9f4GkQ3uVoXBmiU=
+github.com/nunnatsa/ginkgolinter v0.13.3/go.mod h1:aTKXo8WddENYxNEFT+4ZxEgWXqlD9uMD3w9Bfw/ABEc=
 github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
 github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
 github.com/onsi/ginkgo/v2 v2.9.4 h1:xR7vG4IXt5RWx6FfIjyAtsoMAtnc3C/rFXBBd2AjZwE=
diff --git a/pkg/config/linters_settings.go b/pkg/config/linters_settings.go
index f930a8aa..41c2cb6c 100644
--- a/pkg/config/linters_settings.go
+++ b/pkg/config/linters_settings.go
@@ -396,7 +396,7 @@ type GinkgoLinterSettings struct {
 	SuppressErrAssertion     bool `mapstructure:"suppress-err-assertion"`
 	SuppressCompareAssertion bool `mapstructure:"suppress-compare-assertion"`
 	SuppressAsyncAssertion   bool `mapstructure:"suppress-async-assertion"`
-	SuppressFocusContainer   bool `mapstructure:"suppress-focus-container"`
+	ForbidFocusContainer     bool `mapstructure:"forbid-focus-container"`
 	AllowHaveLenZero         bool `mapstructure:"allow-havelen-zero"`
 }
 
diff --git a/pkg/golinters/ginkgolinter.go b/pkg/golinters/ginkgolinter.go
index 136457b7..7b8102b6 100644
--- a/pkg/golinters/ginkgolinter.go
+++ b/pkg/golinters/ginkgolinter.go
@@ -19,7 +19,7 @@ func NewGinkgoLinter(cfg *config.GinkgoLinterSettings) *goanalysis.Linter {
 			"suppress-err-assertion":     cfg.SuppressErrAssertion,
 			"suppress-compare-assertion": cfg.SuppressCompareAssertion,
 			"suppress-async-assertion":   cfg.SuppressAsyncAssertion,
-			"suppress-focus-container":   cfg.SuppressFocusContainer,
+			"forbid-focus-container":     cfg.ForbidFocusContainer,
 			"allow-havelen-0":            cfg.AllowHaveLenZero,
 		}
 	}
diff --git a/test/testdata/ginkgolinter/configs/ginkgolinter_suppress_focused_containers.yml b/test/testdata/ginkgolinter/configs/ginkgolinter_suppress_focused_containers.yml
index 293f854e..83f49e87 100644
--- a/test/testdata/ginkgolinter/configs/ginkgolinter_suppress_focused_containers.yml
+++ b/test/testdata/ginkgolinter/configs/ginkgolinter_suppress_focused_containers.yml
@@ -1,3 +1,3 @@
 linters-settings:
   ginkgolinter:
-    suppress-focus-container: true
+    forbid-focus-container: true
diff --git a/test/testdata/ginkgolinter/ginkgolinter.go b/test/testdata/ginkgolinter/ginkgolinter.go
index 4d9805a4..6de26066 100644
--- a/test/testdata/ginkgolinter/ginkgolinter.go
+++ b/test/testdata/ginkgolinter/ginkgolinter.go
@@ -78,10 +78,10 @@ func WrongEventuallyWithFunction() {
 	Eventually(slowInt()).Should(Equal(42)) // want "ginkgo-linter: use a function call in Eventually. This actually checks nothing, because Eventually receives the function returned value, instead of function itself, and this value is never changed; consider using .Eventually\\(slowInt\\)\\.Should\\(Equal\\(42\\)\\). instead"
 }
 
-var _ = Describe("Should warn for focused containers", func() {
-	FContext("should not allow FContext", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"Context\""
-		FWhen("should not allow FWhen", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"When\""
-			FIt("should not allow FIt", func() {}) // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"It\""
+var _ = FDescribe("Should warn for focused containers", func() {
+	FContext("should not allow FContext", func() {
+		FWhen("should not allow FWhen", func() {
+			FIt("should not allow FIt", func() {})
 		})
 	})
 })
diff --git a/test/testdata/ginkgolinter/ginkgolinter_havelen0.go b/test/testdata/ginkgolinter/ginkgolinter_havelen0.go
index 48da4d5a..4ca9a61b 100644
--- a/test/testdata/ginkgolinter/ginkgolinter_havelen0.go
+++ b/test/testdata/ginkgolinter/ginkgolinter_havelen0.go
@@ -79,10 +79,10 @@ func WrongEventuallyWithFunction_havelen0() {
 	Eventually(slowInt_havelen0()).Should(Equal(42)) // want "ginkgo-linter: use a function call in Eventually. This actually checks nothing, because Eventually receives the function returned value, instead of function itself, and this value is never changed; consider using .Eventually\\(slowInt_havelen0\\)\\.Should\\(Equal\\(42\\)\\). instead"
 }
 
-var _ = Describe("Should warn for focused containers", func() {
-	FContext("should not allow FContext", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"Context\""
-		FWhen("should not allow FWhen", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"When\""
-			FIt("should not allow FIt", func() {}) // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"It\""
+var _ = FDescribe("Should warn for focused containers", func() {
+	FContext("should not allow FContext", func() {
+		FWhen("should not allow FWhen", func() {
+			FIt("should not allow FIt", func() {})
 		})
 	})
 })
diff --git a/test/testdata/ginkgolinter/ginkgolinter_suppress_async.go b/test/testdata/ginkgolinter/ginkgolinter_suppress_async.go
index 473cb7ad..015010a5 100644
--- a/test/testdata/ginkgolinter/ginkgolinter_suppress_async.go
+++ b/test/testdata/ginkgolinter/ginkgolinter_suppress_async.go
@@ -80,10 +80,10 @@ func WrongEventuallyWithFunction_async() {
 	Eventually(slowInt_async()).Should(Equal(42)) // suppressed
 }
 
-var _ = Describe("Should warn for focused containers", func() {
-	FContext("should not allow FContext", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"Context\""
-		FWhen("should not allow FWhen", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"When\""
-			FIt("should not allow FIt", func() {}) // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"It\""
+var _ = FDescribe("Should warn for focused containers", func() {
+	FContext("should not allow FContext", func() {
+		FWhen("should not allow FWhen", func() {
+			FIt("should not allow FIt", func() {})
 		})
 	})
 })
diff --git a/test/testdata/ginkgolinter/ginkgolinter_suppress_compare.go b/test/testdata/ginkgolinter/ginkgolinter_suppress_compare.go
index f2160aa5..8460371d 100644
--- a/test/testdata/ginkgolinter/ginkgolinter_suppress_compare.go
+++ b/test/testdata/ginkgolinter/ginkgolinter_suppress_compare.go
@@ -80,10 +80,10 @@ func WrongEventuallyWithFunction_compare() {
 	Eventually(slowInt_compare()).Should(Equal(42)) // want "ginkgo-linter: use a function call in Eventually. This actually checks nothing, because Eventually receives the function returned value, instead of function itself, and this value is never changed; consider using .Eventually\\(slowInt_compare\\)\\.Should\\(Equal\\(42\\)\\). instead"
 }
 
-var _ = Describe("Should warn for focused containers", func() {
-	FContext("should not allow FContext", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"Context\""
-		FWhen("should not allow FWhen", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"When\""
-			FIt("should not allow FIt", func() {}) // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"It\""
+var _ = FDescribe("Should warn for focused containers", func() {
+	FContext("should not allow FContext", func() {
+		FWhen("should not allow FWhen", func() {
+			FIt("should not allow FIt", func() {})
 		})
 	})
 })
diff --git a/test/testdata/ginkgolinter/ginkgolinter_suppress_err.go b/test/testdata/ginkgolinter/ginkgolinter_suppress_err.go
index 68dff056..db5accc3 100644
--- a/test/testdata/ginkgolinter/ginkgolinter_suppress_err.go
+++ b/test/testdata/ginkgolinter/ginkgolinter_suppress_err.go
@@ -80,10 +80,10 @@ func WrongEventuallyWithFunction_err() {
 	Eventually(slowInt_err()).Should(Equal(42)) // want "ginkgo-linter: use a function call in Eventually. This actually checks nothing, because Eventually receives the function returned value, instead of function itself, and this value is never changed; consider using .Eventually\\(slowInt_err\\)\\.Should\\(Equal\\(42\\)\\). instead"
 }
 
-var _ = Describe("Should warn for focused containers", func() {
-	FContext("should not allow FContext", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"Context\""
-		FWhen("should not allow FWhen", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"When\""
-			FIt("should not allow FIt", func() {}) // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"It\""
+var _ = FDescribe("Should warn for focused containers", func() {
+	FContext("should not allow FContext", func() {
+		FWhen("should not allow FWhen", func() {
+			FIt("should not allow FIt", func() {})
 		})
 	})
 })
diff --git a/test/testdata/ginkgolinter/ginkgolinter_suppress_focused_containers.go b/test/testdata/ginkgolinter/ginkgolinter_suppress_focused_containers.go
index 1f044bbe..ec0d3522 100644
--- a/test/testdata/ginkgolinter/ginkgolinter_suppress_focused_containers.go
+++ b/test/testdata/ginkgolinter/ginkgolinter_suppress_focused_containers.go
@@ -79,10 +79,10 @@ func WrongEventuallyWithFunction_focus() {
 	Eventually(slowInt_focus()).Should(Equal(42)) // want "ginkgo-linter: use a function call in Eventually. This actually checks nothing, because Eventually receives the function returned value, instead of function itself, and this value is never changed; consider using .Eventually\\(slowInt_focus\\)\\.Should\\(Equal\\(42\\)\\). instead"
 }
 
-var _ = FDescribe("Should warn for focused containers", func() {
-	FContext("should not allow FContext", func() {
-		FWhen("should not allow FWhen", func() {
-			FIt("should not allow FIt", func() {
+var _ = Describe("Should warn for focused containers", func() {
+	FContext("should not allow FContext", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"Context\""
+		FWhen("should not allow FWhen", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"When\""
+			FIt("should not allow FIt", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"It\""
 
 			})
 		})
diff --git a/test/testdata/ginkgolinter/ginkgolinter_suppress_len.go b/test/testdata/ginkgolinter/ginkgolinter_suppress_len.go
index 9e29574a..81fc2652 100644
--- a/test/testdata/ginkgolinter/ginkgolinter_suppress_len.go
+++ b/test/testdata/ginkgolinter/ginkgolinter_suppress_len.go
@@ -80,10 +80,10 @@ func WrongEventuallyWithFunction_len() {
 	Eventually(slowInt_len()).Should(Equal(42)) // want "ginkgo-linter: use a function call in Eventually. This actually checks nothing, because Eventually receives the function returned value, instead of function itself, and this value is never changed; consider using .Eventually\\(slowInt_len\\)\\.Should\\(Equal\\(42\\)\\). instead"
 }
 
-var _ = Describe("Should warn for focused containers", func() {
-	FContext("should not allow FContext", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"Context\""
-		FWhen("should not allow FWhen", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"When\""
-			FIt("should not allow FIt", func() {}) // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"It\""
+var _ = FDescribe("Should warn for focused containers", func() {
+	FContext("should not allow FContext", func() {
+		FWhen("should not allow FWhen", func() {
+			FIt("should not allow FIt", func() {})
 		})
 	})
 })
diff --git a/test/testdata/ginkgolinter/ginkgolinter_suppress_nil.go b/test/testdata/ginkgolinter/ginkgolinter_suppress_nil.go
index 506e6166..5eb93ac5 100644
--- a/test/testdata/ginkgolinter/ginkgolinter_suppress_nil.go
+++ b/test/testdata/ginkgolinter/ginkgolinter_suppress_nil.go
@@ -80,10 +80,10 @@ func WrongEventuallyWithFunction_nil() {
 	Eventually(slowInt_nil()).Should(Equal(42)) // want "ginkgo-linter: use a function call in Eventually. This actually checks nothing, because Eventually receives the function returned value, instead of function itself, and this value is never changed; consider using .Eventually\\(slowInt_nil\\)\\.Should\\(Equal\\(42\\)\\). instead"
 }
 
-var _ = Describe("Should warn for focused containers", func() {
-	FContext("should not allow FContext", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"Context\""
-		FWhen("should not allow FWhen", func() { // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"When\""
-			FIt("should not allow FIt", func() {}) // want "ginkgo-linter: Focus container found. This is used only for local debug and should not be part of the actual source code, consider to replace with \"It\""
+var _ = FDescribe("Should warn for focused containers", func() {
+	FContext("should not allow FContext", func() {
+		FWhen("should not allow FWhen", func() {
+			FIt("should not allow FIt", func() {})
 		})
 	})
 })