Skip to content

Commit

Permalink
Set default severity to "info" in parseAnnotations function
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Sep 13, 2024
1 parent d27926c commit 821808d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/annotations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function parseAnnotations(text: string): Diagnostic[] {
const addAnnotation = (m: RegExpMatchArray) => {
const { file, line, endLine, severity, code, message } = m.groups
const annotation: Diagnostic = {
severity: sevMap[severity],
severity: sevMap[severity] ?? "info",
filename: file,
range: [
[parseInt(line) - 1, 0],
Expand Down

0 comments on commit 821808d

Please sign in to comment.