github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/quickfix/qf1011/qf1011.go (about)

     1  package qf1011
     2  
     3  import (
     4  	"github.com/amarpal/go-tools/analysis/lint"
     5  	"github.com/amarpal/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