ReportDescriptor
Defined in: rule.ts:100
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 global offsets to a span). Give the message as a
literal message, or a messageId into meta.messages with data for
{{placeholder}} interpolation.
Properties
Section titled “Properties”anchors?
Section titled “anchors?”
optionalanchors?: readonlyLintAnchor[]
Defined in: rule.ts:112
assumptions?
Section titled “assumptions?”
optionalassumptions?: readonlystring[]
Defined in: rule.ts:114
confidence?
Section titled “confidence?”
optionalconfidence?:Confidence
Defined in: rule.ts:110
Certainty for this occurrence; overrides the rule’s default confidence.
optionaldata?:Record<string,string|number>
Defined in: rule.ts:106
evidence?
Section titled “evidence?”
optionalevidence?: readonlyRuleEvidence[]
Defined in: rule.ts:111
optionalfix?:TextFix
Defined in: rule.ts:107
magnitude?
Section titled “magnitude?”
optionalmagnitude?:LintMagnitude
Defined in: rule.ts:113
message?
Section titled “message?”
optionalmessage?:string
Defined in: rule.ts:105
messageId?
Section titled “messageId?”
optionalmessageId?:string
Defined in: rule.ts:104
sentence?
Section titled “sentence?”
optionalsentence?:DepSentence
Defined in: rule.ts:103
optionalspan?:object
Defined in: rule.ts:101
end:
number
start:
number
suggestion?
Section titled “suggestion?”
optionalsuggestion?:string
Defined in: rule.ts:108
tokens?
Section titled “tokens?”
optionaltokens?:DepToken[]
Defined in: rule.ts:102