...
Source file
src/cmd/vet/main.go
Documentation: cmd/vet
1
2
3
4
5 package main
6
7 import (
8 "cmd/internal/objabi"
9
10 "golang.org/x/tools/go/analysis/unitchecker"
11
12 "golang.org/x/tools/go/analysis/passes/appends"
13 "golang.org/x/tools/go/analysis/passes/asmdecl"
14 "golang.org/x/tools/go/analysis/passes/assign"
15 "golang.org/x/tools/go/analysis/passes/atomic"
16 "golang.org/x/tools/go/analysis/passes/bools"
17 "golang.org/x/tools/go/analysis/passes/buildtag"
18 "golang.org/x/tools/go/analysis/passes/cgocall"
19 "golang.org/x/tools/go/analysis/passes/composite"
20 "golang.org/x/tools/go/analysis/passes/copylock"
21 "golang.org/x/tools/go/analysis/passes/defers"
22 "golang.org/x/tools/go/analysis/passes/directive"
23 "golang.org/x/tools/go/analysis/passes/errorsas"
24 "golang.org/x/tools/go/analysis/passes/framepointer"
25 "golang.org/x/tools/go/analysis/passes/httpresponse"
26 "golang.org/x/tools/go/analysis/passes/ifaceassert"
27 "golang.org/x/tools/go/analysis/passes/loopclosure"
28 "golang.org/x/tools/go/analysis/passes/lostcancel"
29 "golang.org/x/tools/go/analysis/passes/nilfunc"
30 "golang.org/x/tools/go/analysis/passes/printf"
31 "golang.org/x/tools/go/analysis/passes/shift"
32 "golang.org/x/tools/go/analysis/passes/sigchanyzer"
33 "golang.org/x/tools/go/analysis/passes/slog"
34 "golang.org/x/tools/go/analysis/passes/stdmethods"
35 "golang.org/x/tools/go/analysis/passes/stringintconv"
36 "golang.org/x/tools/go/analysis/passes/structtag"
37 "golang.org/x/tools/go/analysis/passes/testinggoroutine"
38 "golang.org/x/tools/go/analysis/passes/tests"
39 "golang.org/x/tools/go/analysis/passes/timeformat"
40 "golang.org/x/tools/go/analysis/passes/unmarshal"
41 "golang.org/x/tools/go/analysis/passes/unreachable"
42 "golang.org/x/tools/go/analysis/passes/unsafeptr"
43 "golang.org/x/tools/go/analysis/passes/unusedresult"
44 )
45
46 func main() {
47 objabi.AddVersionFlag()
48
49 unitchecker.Main(
50 appends.Analyzer,
51 asmdecl.Analyzer,
52 assign.Analyzer,
53 atomic.Analyzer,
54 bools.Analyzer,
55 buildtag.Analyzer,
56 cgocall.Analyzer,
57 composite.Analyzer,
58 copylock.Analyzer,
59 defers.Analyzer,
60 directive.Analyzer,
61 errorsas.Analyzer,
62 framepointer.Analyzer,
63 httpresponse.Analyzer,
64 ifaceassert.Analyzer,
65 loopclosure.Analyzer,
66 lostcancel.Analyzer,
67 nilfunc.Analyzer,
68 printf.Analyzer,
69 shift.Analyzer,
70 sigchanyzer.Analyzer,
71 slog.Analyzer,
72 stdmethods.Analyzer,
73 stringintconv.Analyzer,
74 structtag.Analyzer,
75 tests.Analyzer,
76 testinggoroutine.Analyzer,
77 timeformat.Analyzer,
78 unmarshal.Analyzer,
79 unreachable.Analyzer,
80 unsafeptr.Analyzer,
81 unusedresult.Analyzer,
82 )
83 }
84
View as plain text