From bc1cf285c264a463f1a5cb4e8d31f8dfea7cdfbc Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 2 Aug 2017 13:55:24 +0900 Subject: Rubocop: Show cop name --- ale_linters/ruby/rubocop.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ale_linters') 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 -- cgit v1.2.3