Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
svartalf committed May 12, 2020
1 parent 5dc7d0b commit 9e02862
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/annotate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function render(message: Message): void {
break;
case "error":
case "error: internal compiler error":
// Unreachable unless rustc introduces another severity level
default:
// `default` is unreachable unless rustc introduces another severity level
level = "failure";
break;
}
Expand All @@ -63,11 +63,16 @@ function render(message: Message): void {
annotations.annotate({
title: message.message,
path: span.file_name,
// eslint-disable-next-line @typescript-eslint/camelcase
annotation_level: level,
message: message.rendered,
// eslint-disable-next-line @typescript-eslint/camelcase
start_line: span.line_start,
// eslint-disable-next-line @typescript-eslint/camelcase
end_line: span.line_end,
// eslint-disable-next-line @typescript-eslint/camelcase
start_column: span.column_start,
// eslint-disable-next-line @typescript-eslint/camelcase
end_column: span.column_end,
});
}
Expand Down

0 comments on commit 9e02862

Please sign in to comment.