From 4903b966a7fb29c9c74a7e1abf21de4ff8dd0028 Mon Sep 17 00:00:00 2001 From: rhysd Date: Mon, 9 Apr 2018 16:41:35 +0900 Subject: pylint: Move to the buffer's directory before running pylint command (Fix #1472) --- ale_linters/python/pylint.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ale_linters') diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim index e3e6624d..d757e8e8 100644 --- a/ale_linters/python/pylint.vim +++ b/ale_linters/python/pylint.vim @@ -14,7 +14,8 @@ function! ale_linters#python#pylint#GetExecutable(buffer) abort endfunction function! ale_linters#python#pylint#GetCommand(buffer) abort - return ale#Escape(ale_linters#python#pylint#GetExecutable(a:buffer)) + return ale#path#BufferCdString(a:buffer) + \ . ale#Escape(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' \ . ' %s' -- cgit v1.2.3