Added and fixed tests
This commit is contained in:
parent
02fdfcda58
commit
f82ab76833
@ -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
|
||||||
|
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user