Skip to content

ReportDescriptor

Defined in: rule.ts:53

What a rule passes to ctx.report. Give a location as either an explicit span or a set of tokens (with the sentence they belong to, so the engine can resolve their byte offsets to a global char span). Give the message as a literal message, or a messageId into meta.messages with data for {{placeholder}} interpolation.

optional data?: Record<string, string | number>

Defined in: rule.ts:59


optional fix?: TextFix

Defined in: rule.ts:60


optional message?: string

Defined in: rule.ts:58


optional messageId?: string

Defined in: rule.ts:57


optional sentence?: DepSentence

Defined in: rule.ts:56


optional span?: object

Defined in: rule.ts:54

end: number

start: number


optional suggestion?: string

Defined in: rule.ts:61


optional tokens?: DepToken[]

Defined in: rule.ts:55