Add staticcheck tool
This commit is contained in:
21
vendor/honnef.co/go/tools/quickfix/qf1011/qf1011.go
vendored
Normal file
21
vendor/honnef.co/go/tools/quickfix/qf1011/qf1011.go
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
package qf1011
|
||||
|
||||
import (
|
||||
"honnef.co/go/tools/analysis/lint"
|
||||
"honnef.co/go/tools/internal/sharedcheck"
|
||||
)
|
||||
|
||||
func init() {
|
||||
SCAnalyzer.Analyzer.Name = "QF1011"
|
||||
}
|
||||
|
||||
var SCAnalyzer = lint.InitializeAnalyzer(&lint.Analyzer{
|
||||
Analyzer: sharedcheck.RedundantTypeInDeclarationChecker("could", true),
|
||||
Doc: &lint.RawDocumentation{
|
||||
Title: "Omit redundant type from variable declaration",
|
||||
Since: "2021.1",
|
||||
Severity: lint.SeverityHint,
|
||||
},
|
||||
})
|
||||
|
||||
var Analyzer = SCAnalyzer.Analyzer
|
||||
Reference in New Issue
Block a user