Source file src/internal/analysis/suite/fix/fix.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 fix provides the analyzers of cmd/fix, from the copy of 6 // golang.org/x/tools vendored into the standard library, so that they 7 // share a single vendored copy with the analyzers of cmd/vet. 8 // 9 // Run them with the driver from the same copy (see 10 // [internal/analysis/unitchecker]), since the *analysis.Analyzer types 11 // must be identical. 12 // 13 // This package is an import bottleneck: importing it for any symbol 14 // depends on every analyzer of the fix suite. That is intended, since 15 // it is meant only for programs that run the whole suite, such as 16 // cmd/fix; it should not be imported for the sake of a single 17 // analyzer. 18 package fix 19 20 import "golang.org/x/tools/go/analysis/suite/fix" 21 22 // Suite is the set of analyzers run by cmd/fix. 23 var Suite = fix.Suite 24