Skip to content

Lint

Defined in: rule.ts:64

A single reported problem — the linter’s output unit (was Finding).

optional anchors?: readonly LintAnchor[]

Defined in: rule.ts:86

Useful positions inside the finding, such as candidate clause split points.


optional assumptions?: readonly string[]

Defined in: rule.ts:90

Visible assumptions that still require writer or tool judgment.


category: string

Defined in: rule.ts:68

The rule’s category (pack-defined), for grouping / colour.


confidence: Confidence

Defined in: rule.ts:71

Detector certainty, independent of how the finding is rendered or gated.


end: number

Defined in: rule.ts:75

Char offset into the original text (exclusive).


optional evidence?: readonly RuleEvidence[]

Defined in: rule.ts:84

Inspectable facts that produced this finding.


optional fix?: TextFix

Defined in: rule.ts:80


optional magnitude?: LintMagnitude

Defined in: rule.ts:88

Numeric strength measurements for scoring partial improvement.


message: string

Defined in: rule.ts:79

Why it was flagged, in plain language.


ruleId: string

Defined in: rule.ts:66

Namespaced identifier, e.g. ‘ai-style/corrective-antithesis’.


severity: ActiveSeverity

Defined in: rule.ts:69


start: number

Defined in: rule.ts:73

Char offset into the original text (inclusive).


optional suggestion?: string

Defined in: rule.ts:82

Optional concrete suggestion (prose).


text: string

Defined in: rule.ts:77

The exact flagged substring.