DiagnosticRefinement

Refines diagnostics emitted by a rule.

Rule sets can use refinements when a dialect or integration has enough context to narrow diagnostics from another rule set without moving that dialect-specific knowledge into the original rule.

Properties

Link copied to clipboard

Rule ID whose diagnostics this refinement should inspect.

Functions

Link copied to clipboard
abstract fun refine(context: RuleContext, diagnostic: Diagnostic): Diagnostic?

Returns the diagnostic to keep, or null to suppress it.