MCPcopy Index your code
hub / github.com/google/go-github / New

Function New

tools/sliceofpointers/sliceofpointers.go:28–30  ·  view source on GitHub ↗

New returns an analysis.Analyzer to use with golangci-lint.

(_ any)

Source from the content-addressed store, hash-verified

26
27// New returns an analysis.Analyzer to use with golangci-lint.
28func New(_ any) (register.LinterPlugin, error) {
29 return &SliceOfPointersPlugin{}, nil
30}
31
32// BuildAnalyzers builds the analyzers for the SliceOfPointersPlugin.
33func (f *SliceOfPointersPlugin) BuildAnalyzers() ([]*analysis.Analyzer, error) {

Callers 1

TestRunFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestRunFunction · 0.56