Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Issue ¶
type Issue struct { FromLinter string Text string Severity string // Source lines of a code with the issue to show SourceLines []string // Pkg is needed for proper caching of linting results Pkg *packages.Package `json:"-"` Pos token.Position LineRange *Range `json:",omitempty"` // HunkPos is used only when golangci-lint is run over a diff HunkPos int `json:",omitempty"` // If we know how to fix the issue we can provide replacement lines SuggestedFixes []analysis.SuggestedFix `json:",omitempty"` // If we are expecting a nolint (because this is from nolintlint), record the expected linter ExpectNoLint bool ExpectedNoLintLinter string }
func (*Issue) Description ¶ added in v1.28.0
func (*Issue) Fingerprint ¶ added in v1.28.0
func (*Issue) GetLineRange ¶
Click to show internal directories.
Click to hide internal directories.