Source file src/internal/analysis/suite/vet/vet.go
1 // Copyright 2026 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package vet provides the analyzers of cmd/vet, from the copy of 6 // golang.org/x/tools vendored into the standard library, so that 7 // cmd/vet (and, in future, other parts of the toolchain, such as the 8 // analysis driver of go test) can share a single vendored copy. 9 // 10 // Run them with the driver from the same copy (see 11 // [internal/analysis/unitchecker]), since the *analysis.Analyzer types 12 // must be identical. 13 // 14 // This package is an import bottleneck: importing it for any symbol 15 // depends on every analyzer of the vet suite. That is intended, since 16 // it is meant only for programs that run the whole suite, such as 17 // cmd/vet; it should not be imported for the sake of a single 18 // analyzer. 19 package vet 20 21 import "golang.org/x/tools/go/analysis/suite/vet" 22 23 // Suite is the set of analyzers run by cmd/vet. 24 var Suite = vet.Suite 25