.github/workflows/vettools: add mroe analysis

This commit is contained in:
Hajime Hoshi 2022-09-18 17:38:48 +09:00
parent 2f222433c0
commit 4865f0a3da

View File

@ -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)
}