Ende.lint.RuleContext
interface · experimental
interface Ende.lint.RuleContextProperties
id
id: stringThe running rule id: <plugin-name>/<rule-name>
filename
filename: stringName of the file that's currently being linted.
sourceCode
sourceCode: SourceCodeHelper methods for working with the raw source code.
Methods
report
report(data: ReportData): voidReport a lint error.
getFilename
getFilename(): stringDeprecated.
Use
ctx.filenameinstead.
getSourceCode
getSourceCode(): SourceCodeDeprecated.
Use
ctx.sourceCodeinstead.