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
Parameter | Type | Description |
---|---|---|
start | number | The start index of the issue. |
end | number | The end index of the issue. |
message | string | A message that describes the issue. |
hash | string | A hash for the issue. If omitted, the hash of message will be used. |
Returns
void