aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/Antonboom/testifylint/analyzer
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-09-10 12:16:33 +0200
committerTaras Madan <tarasmadan@google.com>2024-09-10 14:05:26 +0000
commitc97c816133b42257d0bcf1ee4bd178bb2a7a2b9e (patch)
tree0bcbc2e540bbf8f62f6c17887cdd53b8c2cee637 /vendor/github.com/Antonboom/testifylint/analyzer
parent54e657429ab892ad06c90cd7c1a4eb33ba93a3dc (diff)
vendor: update
Diffstat (limited to 'vendor/github.com/Antonboom/testifylint/analyzer')
-rw-r--r--vendor/github.com/Antonboom/testifylint/analyzer/analyzer.go2
-rw-r--r--vendor/github.com/Antonboom/testifylint/analyzer/checkers_factory.go7
2 files changed, 8 insertions, 1 deletions
diff --git a/vendor/github.com/Antonboom/testifylint/analyzer/analyzer.go b/vendor/github.com/Antonboom/testifylint/analyzer/analyzer.go
index 84d7e815d..a9e41b0a8 100644
--- a/vendor/github.com/Antonboom/testifylint/analyzer/analyzer.go
+++ b/vendor/github.com/Antonboom/testifylint/analyzer/analyzer.go
@@ -19,7 +19,7 @@ const (
url = "https://github.com/antonboom/" + name
)
-// New returns new instance of testifylint analyzer.
+// New returns a new instance of testifylint analyzer.
func New() *analysis.Analyzer {
cfg := config.NewDefault()
diff --git a/vendor/github.com/Antonboom/testifylint/analyzer/checkers_factory.go b/vendor/github.com/Antonboom/testifylint/analyzer/checkers_factory.go
index 77573e395..df04dfdc5 100644
--- a/vendor/github.com/Antonboom/testifylint/analyzer/checkers_factory.go
+++ b/vendor/github.com/Antonboom/testifylint/analyzer/checkers_factory.go
@@ -55,6 +55,13 @@ func newCheckers(cfg config.Config) ([]checkers.RegularChecker, []checkers.Advan
case *checkers.ExpectedActual:
c.SetExpVarPattern(cfg.ExpectedActual.ExpVarPattern.Regexp)
+ case *checkers.Formatter:
+ c.SetCheckFormatString(cfg.Formatter.CheckFormatString)
+ c.SetRequireFFuncs(cfg.Formatter.RequireFFuncs)
+
+ case *checkers.GoRequire:
+ c.SetIgnoreHTTPHandlers(cfg.GoRequire.IgnoreHTTPHandlers)
+
case *checkers.RequireError:
c.SetFnPattern(cfg.RequireError.FnPattern.Regexp)