Documentation
¶
Overview ¶
Package base holds the rule scaffolding types embedded by every rule implementation: BaseRule (name/ruleset/severity/description metadata and the Finding emit-helper), FlatDispatchBase (marker for flat-dispatch rules), and LineBase (marker for line-pass rules).
This package exists so domain-specific rule subpackages (internal/rules/<domain>/) can embed these types without importing the main rules package — which would create a cycle, since rules imports the subpackages for side-effect registration.
Anything that lives outside the rule struct itself (config glue, exclude matching, registry plumbing) stays in the rules package, not here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRule ¶
BaseRule provides common fields embedded in every rule implementation. It carries the canonical name/ruleset/severity/description metadata and the Finding helper that rules use to construct emit-boundary scanner.Finding values.
The name intentionally stutters as base.BaseRule — the parent rules package re-exports it via `type BaseRule = base.BaseRule`, and renaming here would break every embed and literal in the codebase (hundreds of sites) without changing the rule scaffolding semantics.
func (BaseRule) Description ¶
type FlatDispatchBase ¶
type FlatDispatchBase struct{}
FlatDispatchBase is embedded by flat-dispatch rule implementations.