summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-04-09 18:14:42 +0100
committerGitHub <noreply@github.com>2018-04-09 18:14:42 +0100
commit3a47413286ff4701898b571aa4b066bd6d17bf3e (patch)
treee6ec6b926fa2267ba0ce8700563706b28c53d251 /ale_linters
parent2f2dcb84444f440ceb4b35010b861738216525f6 (diff)
parent4903b966a7fb29c9c74a7e1abf21de4ff8dd0028 (diff)
downloadale-3a47413286ff4701898b571aa4b066bd6d17bf3e.zip
Merge pull request #1487 from rhysd/fix-1472
pylint: Move to the buffer's directory before running pylint command
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/python/pylint.vim3
1 files changed, 2 insertions, 1 deletions
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'