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
Parameter | Type | Description |
---|---|---|
startLine | number | The 0 -indexed line number of the start of the issue in the file. |
startCol | number | The 0 -indexed column number of the start of the issue in the line. |
endLine | number | The 0 -indexed line number of the end of the issue in the file. |
endCol | number | The 0 -indexed column number of the end of the issue in the line. |
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