From f2c9fc403a5c25a3b9265095f3b6d4cfac80c99e Mon Sep 17 00:00:00 2001 From: w0rp Date: Sat, 6 May 2017 19:30:41 +0100 Subject: Fix #208 - Use the file on disk for pylint, and follow import paths --- ale_linters/python/pylint.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ale_linters/python') diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim index 3ee8bb02..fa76a076 100644 --- a/ale_linters/python/pylint.vim +++ b/ale_linters/python/pylint.vim @@ -29,7 +29,7 @@ function! ale_linters#python#pylint#GetCommand(buffer) abort return ale_linters#python#pylint#GetExecutable(a:buffer) \ . ' ' . ale#Var(a:buffer, 'python_pylint_options') \ . ' --output-format text --msg-template="{path}:{line}:{column}: {msg_id} ({symbol}) {msg}" --reports n' - \ . ' %t' + \ . ' %s' endfunction call ale#linter#Define('python', { @@ -37,4 +37,5 @@ call ale#linter#Define('python', { \ 'executable_callback': 'ale_linters#python#pylint#GetExecutable', \ 'command_callback': 'ale_linters#python#pylint#GetCommand', \ 'callback': 'ale#handlers#python#HandlePEP8Format', +\ 'lint_file': 1, \}) -- cgit v1.2.3