mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-03 00:43:44 +08:00
* Add executable option for phpmd linter (resolves #1076) * Add test for phpmd executable option
This commit is contained in:
1 parent
7b5108d934
commit
7086586b17
3 files changed
+40
-3
No files matched your search
@@ -0,0 +1,20 @@
|
||||
Before:
|
||||
Save g:ale_php_phpmd_executable
|
||||
|
||||
unlet! g:ale_php_phpmd_executable
|
||||
|
||||
runtime ale_linters/php/phpmd.vim
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(Custom executables should be used for the executable and command):
|
||||
let g:ale_php_phpmd_executable = 'phpmd_test'
|
||||
|
||||
AssertEqual 'phpmd_test', ale_linters#php#phpmd#GetExecutable(bufnr(''))
|
||||
AssertEqual
|
||||
\ ale#Escape('phpmd_test')
|
||||
\ . ' %s text cleancode,codesize,controversial,design,naming,unusedcode --ignore-violations-on-exit %t',
|
||||
\ ale_linters#php#phpmd#GetCommand(bufnr(''))
|
||||
Reference in new issue
Block a user