Added and fixed tests

This commit is contained in:
matthias 2018-08-18 20:59:35 +02:00
parent 02fdfcda58
commit f82ab76833
2 changed files with 7 additions and 1 deletions

View File

@ -16,7 +16,7 @@ function! ale_linters#php#phpcs#GetCommand(buffer) abort
return '%e -s --report=emacs --stdin-path=%s' return '%e -s --report=emacs --stdin-path=%s'
\ . ale#Pad(l:standard_option) \ . ale#Pad(l:standard_option)
\ . ' ' . l:options \ . ale#Pad(l:options)
endfunction endfunction
function! ale_linters#php#phpcs#Handle(buffer, lines) abort function! ale_linters#php#phpcs#Handle(buffer, lines) abort

View File

@ -27,3 +27,9 @@ Execute(Projects without local executables should use the global one):
AssertLinter 'phpcs', AssertLinter 'phpcs',
\ ale#Escape('phpcs') . ' -s --report=emacs --stdin-path=%s' \ ale#Escape('phpcs') . ' -s --report=emacs --stdin-path=%s'
Execute(User provided options are used):
let g:ale_php_phpcs_options = '--my-user-provided-option my-value'
AssertLinter 'phpcs',
\ ale#Escape('phpcs') . ' -s --report=emacs --stdin-path=%s --my-user-provided-option my-value'