Merge pull request #1188 from ejsexton82/master
Fixed Command String for phpcbf Fixer
This commit is contained in:
commit
83760a0952
2 changed files with 5 additions and 5 deletions
|
@ -19,6 +19,6 @@ function! ale#fixers#phpcbf#Fix(buffer) abort
|
||||||
\ ? '--standard=' . l:standard
|
\ ? '--standard=' . l:standard
|
||||||
\ : ''
|
\ : ''
|
||||||
return {
|
return {
|
||||||
\ 'command': ale#Escape(l:executable) . ' --stdin-path=%s ' . l:standard_option
|
\ 'command': ale#Escape(l:executable) . ' --stdin-path=%s ' . l:standard_option . ' -'
|
||||||
\}
|
\}
|
||||||
endfunction
|
endfunction
|
||||||
|
|
|
@ -43,7 +43,7 @@ Execute(The phpcbf callback should return the correct default values):
|
||||||
call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php')
|
call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php')
|
||||||
|
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ {'command': ale#Escape(ale#path#Winify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s ' },
|
\ {'command': ale#Escape(ale#path#Winify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s -' },
|
||||||
\ ale#fixers#phpcbf#Fix(bufnr(''))
|
\ ale#fixers#phpcbf#Fix(bufnr(''))
|
||||||
|
|
||||||
Execute(The phpcbf callback should include the phpcbf_standard option):
|
Execute(The phpcbf callback should include the phpcbf_standard option):
|
||||||
|
@ -51,7 +51,7 @@ Execute(The phpcbf callback should include the phpcbf_standard option):
|
||||||
call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php')
|
call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php')
|
||||||
|
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ {'command': ale#Escape(ale#path#Winify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s ' . '--standard=phpcbf_ruleset.xml'},
|
\ {'command': ale#Escape(ale#path#Winify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s ' . '--standard=phpcbf_ruleset.xml' . ' -'},
|
||||||
\ ale#fixers#phpcbf#Fix(bufnr(''))
|
\ ale#fixers#phpcbf#Fix(bufnr(''))
|
||||||
|
|
||||||
Before:
|
Before:
|
||||||
|
@ -99,7 +99,7 @@ Execute(The phpcbf callback should return the correct default values):
|
||||||
call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php')
|
call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php')
|
||||||
|
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ {'command': ale#Escape(ale#path#Winify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s ' },
|
\ {'command': ale#Escape(ale#path#Winify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s -' },
|
||||||
\ ale#fixers#phpcbf#Fix(bufnr(''))
|
\ ale#fixers#phpcbf#Fix(bufnr(''))
|
||||||
|
|
||||||
Execute(The phpcbf callback should include the phpcbf_standard option):
|
Execute(The phpcbf callback should include the phpcbf_standard option):
|
||||||
|
@ -107,6 +107,6 @@ Execute(The phpcbf callback should include the phpcbf_standard option):
|
||||||
call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php')
|
call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php')
|
||||||
|
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ {'command': ale#Escape(ale#path#Winify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s ' . '--standard=phpcbf_ruleset.xml'},
|
\ {'command': ale#Escape(ale#path#Winify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s ' . '--standard=phpcbf_ruleset.xml' . ' -'},
|
||||||
\ ale#fixers#phpcbf#Fix(bufnr(''))
|
\ ale#fixers#phpcbf#Fix(bufnr(''))
|
||||||
|
|
||||||
|
|
Reference in a new issue