diff options
author | Arie Oldman <arie.oldman@vhs7.tv> | 2021-11-12 16:18:49 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-12 14:18:49 +0900 |
commit | ff26ed72312838acbc801cc5e410faa5bab181e1 (patch) | |
tree | e39fa8e2b1cbc5ae77eaee2fe6d0d5821b035fc2 /test | |
parent | a9d7f45924b97a5244fb626dd9ae0bf934ca1ee6 (diff) | |
download | ale-ff26ed72312838acbc801cc5e410faa5bab181e1.zip |
Adds --memory-limit support for phpstan (#3973)
* Adds --memmory-limit option for PHPStan linter
* Updates docs for phpstan --memory-limit option.
* Adds Arizard to authors
* Adds test for phpstan memory limit parameter
* Fixes order of parameters in test
* Changes dash to underscore
Diffstat (limited to 'test')
-rw-r--r-- | test/linter/test_phpstan.vader | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/linter/test_phpstan.vader b/test/linter/test_phpstan.vader index b5b3d3b7..dbeb1bd1 100644 --- a/test/linter/test_phpstan.vader +++ b/test/linter/test_phpstan.vader @@ -113,3 +113,9 @@ Execute(Autoload parameter is added to the command): AssertLinter 'phpstan', \ ale#Escape('phpstan') . ' analyze --no-progress --errorFormat json -a ' . ale#Escape('autoload.php') . ' -l ' . ale#Escape('4') . ' %s' + +Execute(Memory limit parameter is added to the command): + let g:ale_php_phpstan_memory_limit = '500M' + + AssertLinter 'phpstan', + \ ale#Escape('phpstan') . ' analyze --no-progress --errorFormat json -l ' . ale#Escape('4') . ' --memory-limit ' . ale#Escape('500M') . ' %s' |