1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-17 01:00:06 +00:00

fix(*): Add severity, start and end column numbers for diagnostics, change warning to message

This commit is contained in:
Krishna Acondy
2021-03-24 09:11:09 +00:00
parent 702756545b
commit de1fabc394
12 changed files with 126 additions and 37 deletions

View File

@@ -1,8 +1,12 @@
import { Severity } from './Severity'
/**
* A diagnostic is produced by the execution of a lint rule against a file or line of text.
*/
export interface Diagnostic {
lineNumber: number
columnNumber: number
warning: string
startColumnNumber: number
endColumnNumber: number
message: string
severity: Severity
}