diff options
author | Adriaan Zonnenberg <adriaanzon@users.noreply.github.com> | 2018-04-07 23:53:03 +0200 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2018-04-07 23:53:03 +0200 |
commit | 121e806423830fa9e6bc1c7833f0624bd06903ff (patch) | |
tree | bcf6b33ec006f8f0342cc4845a54f99876565024 /autoload | |
parent | bb775e4e22d1880bd015fbc3ea7fa203c9eeb6f9 (diff) | |
download | ale-121e806423830fa9e6bc1c7833f0624bd06903ff.zip |
Add g:ale_php_cs_fixer_options variable (#1477)
* Add g:ale_php_cs_fixer_options variable
* Fix test
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/fixers/php_cs_fixer.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/autoload/ale/fixers/php_cs_fixer.vim b/autoload/ale/fixers/php_cs_fixer.vim index 56aa9150..7697ba64 100644 --- a/autoload/ale/fixers/php_cs_fixer.vim +++ b/autoload/ale/fixers/php_cs_fixer.vim @@ -3,6 +3,7 @@ call ale#Set('php_cs_fixer_executable', 'php-cs-fixer') call ale#Set('php_cs_fixer_use_global', 0) +call ale#Set('php_cs_fixer_options', '') function! ale#fixers#php_cs_fixer#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'php_cs_fixer', [ @@ -14,10 +15,9 @@ endfunction function! ale#fixers#php_cs_fixer#Fix(buffer) abort let l:executable = ale#fixers#php_cs_fixer#GetExecutable(a:buffer) return { - \ 'command': ale#Escape(l:executable) . ' fix %t', + \ 'command': ale#Escape(l:executable) + \ . ' ' . ale#Var(a:buffer, 'php_cs_fixer_options') + \ . ' fix %t', \ 'read_temporary_file': 1, \} endfunction - - - |