mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-10 15:25:51 +08:00
#852 - Capture error codes for Rubocop
This commit is contained in:
2 files changed
+10
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user