From 4865f0a3da5c0159342d0244188f5cfc5d27ffa7 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 18 Sep 2022 17:38:48 +0900 Subject: [PATCH] .github/workflows/vettools: add mroe analysis --- .github/workflows/vettools/main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vettools/main.go b/.github/workflows/vettools/main.go index a24fea666..5b02ca19b 100644 --- a/.github/workflows/vettools/main.go +++ b/.github/workflows/vettools/main.go @@ -19,7 +19,9 @@ import ( "github.com/kisielk/errcheck/errcheck" "golang.org/x/tools/go/analysis/multichecker" + "golang.org/x/tools/go/analysis/passes/atomic" "golang.org/x/tools/go/analysis/passes/atomicalign" + "golang.org/x/tools/go/analysis/passes/copylock" ) func main() { @@ -27,5 +29,9 @@ func main() { if _, err := os.Stat(filename); err == nil { errcheck.Analyzer.Flags.Set("exclude", filename) } - multichecker.Main(atomicalign.Analyzer, errcheck.Analyzer, imageImportCheckAnalyzer) + multichecker.Main(atomic.Analyzer, + atomicalign.Analyzer, + copylock.Analyzer, + errcheck.Analyzer, + imageImportCheckAnalyzer) }