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
| Parameter | Type | Description |
|---|---|---|
| line | number | The 0-indexed line number of the start of the issue in the file. |
| col | number | The 0-indexed column number of the start of the issue in the line. |
| length | number | The length of the substring that caused 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