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

     1  package st1023
     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 = "ST1023"
    10  }
    11  
    12  var SCAnalyzer = lint.InitializeAnalyzer(&lint.Analyzer{
    13  	Analyzer: sharedcheck.RedundantTypeInDeclarationChecker("should", false),
    14  	Doc: &lint.Documentation{
    15  		Title:      "Redundant type in variable declaration",
    16  		Since:      "2021.1",
    17  		NonDefault: true,
    18  		MergeIf:    lint.MergeIfAll,
    19  	},
    20  })
    21  
    22  var Analyzer = SCAnalyzer.Analyzer