diff options
author | John Sivak <jsivak@winterjewel.com> | 2017-06-25 13:22:13 -0400 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2017-06-25 18:22:13 +0100 |
commit | a9b29fef28a72291ada90e30d8b25ee12351d825 (patch) | |
tree | ccc11b7656e1c034e11367c918ccc6e6e764dece | |
parent | c2f69b77501d098fdd973c332d08e18d8e30abd0 (diff) | |
download | ale-a9b29fef28a72291ada90e30d8b25ee12351d825.zip |
Feature/restore display of symbol (#693)
* Add display of the pylint symbol name after the message.
* Update test to pass.
-rw-r--r-- | ale_linters/python/pylint.vim | 2 | ||||
-rw-r--r-- | test/handler/test_pylint_handler.vader | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim index 57c3870a..d339daa9 100644 --- a/ale_linters/python/pylint.vim +++ b/ale_linters/python/pylint.vim @@ -57,7 +57,7 @@ function! ale_linters#python#pylint#Handle(buffer, lines) abort call add(l:output, { \ 'lnum': l:match[1] + 0, \ 'col': l:match[2] + 1, - \ 'text': l:code . ': ' . l:match[5], + \ 'text': l:code . ': ' . l:match[5] . ' (' . l:match[4] . ')', \ 'type': l:code[:0] ==# 'E' ? 'E' : 'W', \}) endfor diff --git a/test/handler/test_pylint_handler.vader b/test/handler/test_pylint_handler.vader index 590a795f..d8ce0438 100644 --- a/test/handler/test_pylint_handler.vader +++ b/test/handler/test_pylint_handler.vader @@ -11,31 +11,31 @@ Execute(pylint handler parsing, translating columns to 1-based index): \ { \ 'lnum': 4, \ 'col': 1, - \ 'text': 'C0303: Trailing whitespace', + \ 'text': 'C0303: Trailing whitespace (trailing-whitespace)', \ 'type': 'W', \ }, \ { \ 'lnum': 1, \ 'col': 1, - \ 'text': 'C0111: Missing module docstring', + \ 'text': 'C0111: Missing module docstring (missing-docstring)', \ 'type': 'W', \ }, \ { \ 'lnum': 2, \ 'col': 1, - \ 'text': 'C0111: Missing function docstring', + \ 'text': 'C0111: Missing function docstring (missing-docstring)', \ 'type': 'W', \ }, \ { \ 'lnum': 3, \ 'col': 5, - \ 'text': 'E0103: ''break'' not properly in loop', + \ 'text': 'E0103: ''break'' not properly in loop (not-in-loop)', \ 'type': 'E', \ }, \ { \ 'lnum': 4, \ 'col': 5, - \ 'text': 'W0101: Unreachable code', + \ 'text': 'W0101: Unreachable code (unreachable)', \ 'type': 'W', \ }, \ ], |