Merge pull request #2044 from Steap/bug/1388

PHP linter: make the path to the executable configurable
This commit is contained in:
w0rp
2018-11-04 10:13:44 +00:00
committed by GitHub
4 changed files with 29 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
Before:
call ale#assert#SetUpLinterTest('php', 'php')
let b:command_tail = ' -l -d error_reporting=E_ALL -d display_errors=1'
\ . ' -d log_errors=0 --'
After:
call ale#assert#TearDownLinterTest()
Execute(The executable should be configurable):
AssertLinter 'php', ale#Escape('php') . b:command_tail
let b:ale_php_php_executable = '/path/to/php'
AssertLinter '/path/to/php', ale#Escape('/path/to/php') . b:command_tail