Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoLintCommentAnnotation = "nolint" NoStyleCommentAnnotation = "nostyle" LintIgnore = "lint:ignore" IgnoreAll = "all" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.3.2
type Option func(*Reporter)
func DisableLintIgnore ¶ added in v0.3.2
func DisableLintIgnore() Option
DisableLintIgnore disables handling for '//lint:ignore'.
func DisableNoLint ¶ added in v0.3.2
func DisableNoLint() Option
DisableNoLint disables handling for '//nolint:*'.
func ExcludeFiles ¶ added in v0.20.0
ExcludeFiles excludes files from the report.
func IgnoreAnotation ¶ added in v0.3.2
IgnoreAnotation sets the annotation to ignore the report.
func IncludeGenerated ¶ added in v0.4.0
func IncludeGenerated() Option
IncludeGenerated includes generated codes in the report.
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter is a wrapper of analysis.Pass.Reportf.
Click to show internal directories.
Click to hide internal directories.