mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 05:04:28 +08:00
php: change phpstan's --errorFormat to --error-format (#2005)
* php: change phpstan's --errorFormat to --error-format * add version check to phpstan
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('php', 'phpstan')
|
||||
|
||||
WithChainResults ['0.10.2']
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
@@ -22,3 +24,11 @@ Execute(Custom phpstan configuration file):
|
||||
|
||||
AssertLinter 'phpstan',
|
||||
\ ale#Escape('phpstan') . ' analyze -l4 --errorFormat raw -c phpstan_config %s'
|
||||
|
||||
Execute(Choose the right format for error format param):
|
||||
WithChainResults ['0.10.3']
|
||||
|
||||
AssertLinter 'phpstan', [
|
||||
\ ale#Escape('phpstan') . ' --version',
|
||||
\ ale#Escape('phpstan') . ' analyze -l4 --error-format raw %s'
|
||||
\ ]
|
||||
|
||||
Reference in New Issue
Block a user