Skip to main content

BettererFile.addIssue()

API > @betterer/betterer > BettererFile > addIssue

Add an issue to the file from start line/column position and length.

Signature

addIssue(line: number, col: number, length: number, message: string, hash?: string): void;

Parameters

ParameterTypeDescription
linenumberThe 0-indexed line number of the start of the issue in the file.
colnumberThe 0-indexed column number of the start of the issue in the line.
lengthnumberThe length of the substring that caused the issue.
messagestringA message that describes the issue.
hashstringA hash for the issue. If omitted, the hash of message will be used.

Returns

void