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
This commit is contained in:
Arie Oldman
2021-11-12 16:18:49 +11:00
committed by GitHub
parent a9d7f45924
commit ff26ed7231
3 changed files with 23 additions and 1 deletions

View File

@@ -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'