woodpecker/vendor/github.com/golangci/golangci-lint/pkg/golinters/asciicheck.go
Lukas c28f7cb29f
Add golangci-lint (#502)
Initial part of #435
2021-11-14 21:01:54 +01:00

19 lines
442 B
Go

package golinters
import (
"github.com/tdakkota/asciicheck"
"golang.org/x/tools/go/analysis"
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
)
func NewAsciicheck() *goanalysis.Linter {
return goanalysis.NewLinter(
"asciicheck",
"Simple linter to check that your code does not contain non-ASCII identifiers",
[]*analysis.Analyzer{
asciicheck.NewAnalyzer(),
},
nil,
).WithLoadMode(goanalysis.LoadModeSyntax)
}