From 0a608f29635803516eecb33e9e16d496ee479733 Mon Sep 17 00:00:00 2001 From: bbrodriges Date: Sun, 12 May 2024 16:41:16 +0300 Subject: [PATCH] remove obsolete analyzer --- cmd/statictest/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/statictest/main.go b/cmd/statictest/main.go index bab635a..2b12e96 100644 --- a/cmd/statictest/main.go +++ b/cmd/statictest/main.go @@ -18,7 +18,6 @@ import ( "golang.org/x/tools/go/analysis/passes/errorsas" "golang.org/x/tools/go/analysis/passes/httpresponse" "golang.org/x/tools/go/analysis/passes/ifaceassert" - "golang.org/x/tools/go/analysis/passes/loopclosure" "golang.org/x/tools/go/analysis/passes/lostcancel" "golang.org/x/tools/go/analysis/passes/nilfunc" "golang.org/x/tools/go/analysis/passes/nilness" @@ -85,8 +84,6 @@ func main() { errorsas.Analyzer, // check for mistakes using HTTP responses httpresponse.Analyzer, - // check references to loop variables from within nested functions - loopclosure.Analyzer, // check cancel func returned by context.WithCancel is called lostcancel.Analyzer, // check for useless comparisons between functions and nil