diff options
author | matthias <SuRaMoN@users.noreply.github.com> | 2018-08-16 16:44:41 +0200 |
---|---|---|
committer | matthias <SuRaMoN@users.noreply.github.com> | 2018-08-16 16:44:41 +0200 |
commit | 02fdfcda58857855d80ddb6eb3a26b3bc36ccbb0 (patch) | |
tree | 2e194aea4f454d1f67a55b1754f06daf55f17bf2 /ale_linters/php | |
parent | ad8b26051913c8bcd58e362d45a9781697904bf9 (diff) | |
download | ale-02fdfcda58857855d80ddb6eb3a26b3bc36ccbb0.zip |
Added phpcs options support as described in #257
Diffstat (limited to 'ale_linters/php')
-rw-r--r-- | ale_linters/php/phpcs.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ale_linters/php/phpcs.vim b/ale_linters/php/phpcs.vim index 25e53714..45f57cda 100644 --- a/ale_linters/php/phpcs.vim +++ b/ale_linters/php/phpcs.vim @@ -3,6 +3,7 @@ let g:ale_php_phpcs_standard = get(g:, 'ale_php_phpcs_standard', '') +call ale#Set('php_phpcs_options', '') call ale#Set('php_phpcs_executable', 'phpcs') call ale#Set('php_phpcs_use_global', get(g:, 'ale_use_global_executables', 0)) @@ -11,8 +12,11 @@ function! ale_linters#php#phpcs#GetCommand(buffer) abort let l:standard_option = !empty(l:standard) \ ? '--standard=' . l:standard \ : '' + let l:options = ale#Var(a:buffer, 'php_phpcs_options') - return '%e -s --report=emacs --stdin-path=%s' . ale#Pad(l:standard_option) + return '%e -s --report=emacs --stdin-path=%s' + \ . ale#Pad(l:standard_option) + \ . ' ' . l:options endfunction function! ale_linters#php#phpcs#Handle(buffer, lines) abort |