diff options
author | w0rp <w0rp@users.noreply.github.com> | 2017-08-02 18:37:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-02 18:37:31 +0100 |
commit | db531171acd9064f91a4f8d6c31d8037ee01e8c5 (patch) | |
tree | 3477bbbafeb75437552b11b82346a9dca416fe60 /ale_linters/ruby | |
parent | d6557b2c5c79fd3c846a5fc83897bca010af1e79 (diff) | |
parent | bc1cf285c264a463f1a5cb4e8d31f8dfea7cdfbc (diff) | |
download | ale-db531171acd9064f91a4f8d6c31d8037ee01e8c5.zip |
Merge pull request #820 from junegunn/rubocop-cop-name
Rubocop: Show cop name
Diffstat (limited to 'ale_linters/ruby')
-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 eb5b61a3..3d7b64d1 100644 --- a/ale_linters/ruby/rubocop.vim +++ b/ale_linters/ruby/rubocop.vim @@ -34,7 +34,7 @@ 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': l:error['message'], + \ 'text': printf('%s [%s]', l:error['message'], l:error['cop_name']), \ 'type': ale_linters#ruby#rubocop#GetType(l:error['severity']), \}) endfor |