honnef.co/go/tools@v0.5.0-0.dev.0.20240520180541-dcae280a5e87/quickfix/qf1011/qf1011.go (about)

     1  package qf1011
     2  
     3  import (
     4  	"honnef.co/go/tools/analysis/lint"
     5  	"honnef.co/go/tools/internal/sharedcheck"
     6  )
     7  
     8  func init() {
     9  	SCAnalyzer.Analyzer.Name = "QF1011"
    10  }
    11  
    12  var SCAnalyzer = lint.InitializeAnalyzer(&lint.Analyzer{
    13  	Analyzer: sharedcheck.RedundantTypeInDeclarationChecker("could", true),
    14  	Doc: &lint.Documentation{
    15  		Title:    "Omit redundant type from variable declaration",
    16  		Since:    "2021.1",
    17  		Severity: lint.SeverityHint,
    18  	},
    19  })
    20  
    21  var Analyzer = SCAnalyzer.Analyzer