Documentation
¶
Overview ¶
Package nolint provides shared helpers for nolint-directive detection used by linters within pkg/linters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildLineIndex ¶
BuildLineIndex scans all comments in the analysis pass and returns a map from filename → set of line numbers that carry a nolint directive for linterName (e.g. "errstringmatch") or "all".
func HasDirective ¶
HasDirective reports whether the given source position is covered by a suppression directive for linterName (or "nolint:all"). Both same-line and previous-line directives are recognised, matching golangci-lint behaviour.
func ImplementsError ¶
ImplementsError reports whether t implements the built-in error interface.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.