Documentation ¶
Overview ¶
Package reporter implements an interface that captures the analysis.Pass.Reportf function within it so that it can be wrapped. This provides the ability for consumers of the linters exposed in lintroller to explicitly ignore linter errors for the linters that report on specific lines by way of nolint directives as well as provide the framework within lintroller itself to report lint reports as warnings instead of errors for specific linters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pass ¶
Pass is a wrapper around *analysis.Pass that accounts for nolint directives as well as any other functionality that it is configured with during initialization with the factory function. Please never initialize this type directly, only through NewPass. If you initialize this type directly, it will essentially be a no-op wrapper around *analysis.Pass.
type PassOption ¶
type PassOption func(*Pass)
PassOption is the functional argument type for Pass.
func Warn ¶
func Warn() PassOption
Warn will ensure that all reported lint issues are warnings as opposed to errors for the current linter.