BettererFile
API > @betterer/betterer > BettererFile
Basic information about a file and its issues.
Signature
export interface BettererFile extends BettererFileBase
Methods
Method | Description |
---|---|
addIssue(start, end, message, hash) | Add an issue to the file from start and end indices in the file contents string. |
addIssue(line, col, length, message, hash) | Add an issue to the file from start line/column position and length. |
addIssue(startLine, startCol, endLine, endCol, message, hash) | Add an issue to the file from start line/column position and end line/column position. |