Skip to content

Commit 51593f4

Browse files
match rubocop diagnostic severities (#1106)
Matched the severities from `lib/rubocop/lsp/severity.rb`, except for leaving `refactor` at the `INFORMATION` severity level, `refactor` violations will return a non-zero exit code/cause CI to fail.
1 parent e2aa093 commit 51593f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ruby_lsp/requests/support/rubocop_diagnostic.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ class RuboCopDiagnostic
99

1010
RUBOCOP_TO_LSP_SEVERITY = T.let(
1111
{
12-
convention: Constant::DiagnosticSeverity::INFORMATION,
13-
info: Constant::DiagnosticSeverity::INFORMATION,
12+
info: Constant::DiagnosticSeverity::HINT,
1413
refactor: Constant::DiagnosticSeverity::INFORMATION,
14+
convention: Constant::DiagnosticSeverity::INFORMATION,
1515
warning: Constant::DiagnosticSeverity::WARNING,
1616
error: Constant::DiagnosticSeverity::ERROR,
1717
fatal: Constant::DiagnosticSeverity::ERROR,

0 commit comments

Comments
 (0)