Black Lives Matter. Support the Equal Justice Initiative.

Source file src/cmd/vet/main.go

Documentation: cmd/vet

     1  package main
     2  
     3  import (
     4  	"cmd/internal/objabi"
     5  
     6  	"golang.org/x/tools/go/analysis/unitchecker"
     7  
     8  	"golang.org/x/tools/go/analysis/passes/asmdecl"
     9  	"golang.org/x/tools/go/analysis/passes/assign"
    10  	"golang.org/x/tools/go/analysis/passes/atomic"
    11  	"golang.org/x/tools/go/analysis/passes/bools"
    12  	"golang.org/x/tools/go/analysis/passes/buildtag"
    13  	"golang.org/x/tools/go/analysis/passes/cgocall"
    14  	"golang.org/x/tools/go/analysis/passes/composite"
    15  	"golang.org/x/tools/go/analysis/passes/copylock"
    16  	"golang.org/x/tools/go/analysis/passes/errorsas"
    17  	"golang.org/x/tools/go/analysis/passes/framepointer"
    18  	"golang.org/x/tools/go/analysis/passes/httpresponse"
    19  	"golang.org/x/tools/go/analysis/passes/ifaceassert"
    20  	"golang.org/x/tools/go/analysis/passes/loopclosure"
    21  	"golang.org/x/tools/go/analysis/passes/lostcancel"
    22  	"golang.org/x/tools/go/analysis/passes/nilfunc"
    23  	"golang.org/x/tools/go/analysis/passes/printf"
    24  	"golang.org/x/tools/go/analysis/passes/shift"
    25  	"golang.org/x/tools/go/analysis/passes/stdmethods"
    26  	"golang.org/x/tools/go/analysis/passes/stringintconv"
    27  	"golang.org/x/tools/go/analysis/passes/structtag"
    28  	"golang.org/x/tools/go/analysis/passes/testinggoroutine"
    29  	"golang.org/x/tools/go/analysis/passes/tests"
    30  	"golang.org/x/tools/go/analysis/passes/unmarshal"
    31  	"golang.org/x/tools/go/analysis/passes/unreachable"
    32  	"golang.org/x/tools/go/analysis/passes/unsafeptr"
    33  	"golang.org/x/tools/go/analysis/passes/unusedresult"
    34  )
    35  
    36  func main() {
    37  	objabi.AddVersionFlag()
    38  
    39  	unitchecker.Main(
    40  		asmdecl.Analyzer,
    41  		assign.Analyzer,
    42  		atomic.Analyzer,
    43  		bools.Analyzer,
    44  		buildtag.Analyzer,
    45  		cgocall.Analyzer,
    46  		composite.Analyzer,
    47  		copylock.Analyzer,
    48  		errorsas.Analyzer,
    49  		framepointer.Analyzer,
    50  		httpresponse.Analyzer,
    51  		ifaceassert.Analyzer,
    52  		loopclosure.Analyzer,
    53  		lostcancel.Analyzer,
    54  		nilfunc.Analyzer,
    55  		printf.Analyzer,
    56  		shift.Analyzer,
    57  		stdmethods.Analyzer,
    58  		stringintconv.Analyzer,
    59  		structtag.Analyzer,
    60  		tests.Analyzer,
    61  		testinggoroutine.Analyzer,
    62  		unmarshal.Analyzer,
    63  		unreachable.Analyzer,
    64  		unsafeptr.Analyzer,
    65  		unusedresult.Analyzer,
    66  	)
    67  }
    68  

View as plain text