mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
.github/workflows/vettools: add mroe analysis
This commit is contained in:
parent
2f222433c0
commit
4865f0a3da
8
.github/workflows/vettools/main.go
vendored
8
.github/workflows/vettools/main.go
vendored
@ -19,7 +19,9 @@ import (
|
|||||||
|
|
||||||
"github.com/kisielk/errcheck/errcheck"
|
"github.com/kisielk/errcheck/errcheck"
|
||||||
"golang.org/x/tools/go/analysis/multichecker"
|
"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/atomicalign"
|
||||||
|
"golang.org/x/tools/go/analysis/passes/copylock"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -27,5 +29,9 @@ func main() {
|
|||||||
if _, err := os.Stat(filename); err == nil {
|
if _, err := os.Stat(filename); err == nil {
|
||||||
errcheck.Analyzer.Flags.Set("exclude", filename)
|
errcheck.Analyzer.Flags.Set("exclude", filename)
|
||||||
}
|
}
|
||||||
multichecker.Main(atomicalign.Analyzer, errcheck.Analyzer, imageImportCheckAnalyzer)
|
multichecker.Main(atomic.Analyzer,
|
||||||
|
atomicalign.Analyzer,
|
||||||
|
copylock.Analyzer,
|
||||||
|
errcheck.Analyzer,
|
||||||
|
imageImportCheckAnalyzer)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user