Skip to main content

BettererFile

API > @betterer/betterer > BettererFile

Basic information about a file and its issues.

Signature

export interface BettererFile extends BettererFileBase 
Extends: [BettererFileBase](/betterer/docs/betterer.bettererfilebase)

Methods

MethodDescription
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.