Skip to main content

BettererFile.addIssue()

API > @betterer/betterer > BettererFile > addIssue

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

Signature

addIssue(startLine: number, startCol: number, endLine: number, endCol: number, message: string, hash?: string): void;

Parameters

ParameterTypeDescription
startLinenumberThe 0-indexed line number of the start of the issue in the file.
startColnumberThe 0-indexed column number of the start of the issue in the line.
endLinenumberThe 0-indexed line number of the end of the issue in the file.
endColnumberThe 0-indexed column number of the end of the issue in the line.
messagestringA message that describes the issue.
hashstringA hash for the issue. If omitted, the hash of message will be used.

Returns

void