1package golinters 2 3import ( 4 "github.com/tdakkota/asciicheck" 5 "golang.org/x/tools/go/analysis" 6 7 "github.com/golangci/golangci-lint/pkg/golinters/goanalysis" 8) 9 10func NewAsciicheck() *goanalysis.Linter { 11 return goanalysis.NewLinter( 12 "asciicheck", 13 "Simple linter to check that your code does not contain non-ASCII identifiers", 14 []*analysis.Analyzer{ 15 asciicheck.NewAnalyzer(), 16 }, 17 nil, 18 ) 19} 20