Skip to main content

BettererFile.addIssue()

API > @betterer/betterer > BettererFile > addIssue

Add an issue to the file from start and end indices in the file contents string.

Signature

addIssue(start: number, end: number, message: string, hash?: string): void;

Parameters

ParameterTypeDescription
startnumberThe start index of the issue.
endnumberThe end index of the issue.
messagestringA message that describes the issue.
hashstringA hash for the issue. If omitted, the hash of message will be used.

Returns

void