Merge pull request #1487 from rhysd/fix-1472

pylint: Move to the buffer's directory before running pylint command
This commit is contained in:
w0rp
2018-04-09 18:14:42 +01:00
committed by w0rp
parent 229da9b8ef
commit 67b71653f5
2 changed files with 14 additions and 7 deletions

View File

@@ -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'