From b9c078da2030c0bc756a6caa7c87703b7b46ac11 Mon Sep 17 00:00:00 2001 From: Gabriel Holodak Date: Sun, 12 Feb 2017 06:15:43 -0500 Subject: [PATCH] Adjust rubocop error levels Consider rubocop fatal errors as ALE errors, and rubocop style warnings as ALE warnings. --- ale_linters/ruby/rubocop.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ale_linters/ruby/rubocop.vim b/ale_linters/ruby/rubocop.vim index 7f6985d..bb674ef 100644 --- a/ale_linters/ruby/rubocop.vim +++ b/ale_linters/ruby/rubocop.vim @@ -25,7 +25,7 @@ function! ale_linters#ruby#rubocop#Handle(buffer, lines) abort \ 'lnum': l:match[1] + 0, \ 'col': l:match[2] + 0, \ 'text': l:text, - \ 'type': index(['C', 'E'], l:type) != -1 ? 'E' : 'W', + \ 'type': index(['F', 'E'], l:type) != -1 ? 'E' : 'W', \}) endfor