diff options
author | w0rp <devw0rp@gmail.com> | 2017-01-12 12:57:07 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-01-12 12:57:07 +0000 |
commit | 9191750b5b1f88b1e6e632b70caeff3d01d9ea78 (patch) | |
tree | e75b19499c72e3f6b507662861f0a35aeaf176d9 /ale_linters/ruby/rubocop.vim | |
parent | 9c5f092b4f9464d035d6a334b3053f2f3eb95c22 (diff) | |
download | ale-9191750b5b1f88b1e6e632b70caeff3d01d9ea78.zip |
Fix #175 - Fix the error types for rubocop
Diffstat (limited to 'ale_linters/ruby/rubocop.vim')
-rw-r--r-- | ale_linters/ruby/rubocop.vim | 2 |
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 |