summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-01-12 12:57:07 +0000
committerw0rp <devw0rp@gmail.com>2017-01-12 12:57:07 +0000
commit9191750b5b1f88b1e6e632b70caeff3d01d9ea78 (patch)
treee75b19499c72e3f6b507662861f0a35aeaf176d9
parent9c5f092b4f9464d035d6a334b3053f2f3eb95c22 (diff)
downloadale-9191750b5b1f88b1e6e632b70caeff3d01d9ea78.zip
Fix #175 - Fix the error types for rubocop
-rw-r--r--ale_linters/ruby/rubocop.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/ruby/rubocop.vim b/ale_linters/ruby/rubocop.vim
index a7ed1f99..72007016 100644
--- a/ale_linters/ruby/rubocop.vim
+++ b/ale_linters/ruby/rubocop.vim
@@ -26,7 +26,7 @@ function! ale_linters#ruby#rubocop#Handle(buffer, lines)
\ 'vcol': 0,
\ 'col': l:match[2] + 0,
\ 'text': l:text,
- \ 'type': l:type ==# 'C' ? 'E' : 'W',
+ \ 'type': index(['C', 'E'], l:type) != -1 ? 'E' : 'W',
\ 'nr': -1,
\})
endfor