Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &gqlanalysis.Analyzer{ Name: "nolint", Doc: doc, Run: run, ResultType: reflect.TypeOf((*Reporters)(nil)), }
Analyzer provides reporters which report diagnostic which is not related with any nolint comments.
var Analyzer = &gqlanalysis.Analyzer{ Name: "mylinter", Doc: "document", Requires: []*gqlanalysis.Analyzer{ nolint.Analyzer, }, Run: func(pass *gqlanalysis.Pass) (interface{}, error) { pass.Report = pass.ResultOf[nolint.Analyzer].(*nolint.Reporters).New(pass) return nil, nil }, }
Functions ¶
Types ¶
type Reporters ¶
type Reporters struct { }
Reporters creates a reporter which reports diagnostic which is not related with any nolint comments.
func (*Reporters) New ¶
func (rs *Reporters) New(pass *gqlanalysis.Pass) func(*gqlanalysis.Diagnostic)
New creates a reporter which reports diagnostic which is not related with any nolint comments.
Click to show internal directories.
Click to hide internal directories.