diff options
author | Aliou Diallo <code@aliou.me> | 2017-11-14 17:50:15 +0100 |
---|---|---|
committer | Aliou Diallo <code@aliou.me> | 2017-11-14 17:50:15 +0100 |
commit | 425482116ed4f8baa9e568be50968f412bd5ca0f (patch) | |
tree | 48bb2532094fb268be66f36c14c547dd39d95bda /ale_linters/ruby/rubocop.vim | |
parent | 16e7dc2371f908204e5191c0e9d55626352097af (diff) | |
download | ale-425482116ed4f8baa9e568be50968f412bd5ca0f.zip |
#852 - Capture error codes for Rubocop
Diffstat (limited to 'ale_linters/ruby/rubocop.vim')
-rw-r--r-- | ale_linters/ruby/rubocop.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/ruby/rubocop.vim b/ale_linters/ruby/rubocop.vim index 2a4388f2..777f457a 100644 --- a/ale_linters/ruby/rubocop.vim +++ b/ale_linters/ruby/rubocop.vim @@ -34,7 +34,8 @@ function! ale_linters#ruby#rubocop#Handle(buffer, lines) abort \ 'lnum': l:error['location']['line'] + 0, \ 'col': l:start_col, \ 'end_col': l:start_col + l:error['location']['length'] - 1, - \ 'text': printf('%s [%s]', l:error['message'], l:error['cop_name']), + \ 'code': l:error['cop_name'], + \ 'text': l:error['message'], \ 'type': ale_linters#ruby#rubocop#GetType(l:error['severity']), \}) endfor |