Skip to content

Commit

Permalink
Merge pull request #257 from Automattic/phpcs-memory-limit
Browse files Browse the repository at this point in the history
Setting PHPCS memory limit
  • Loading branch information
gudmdharalds authored Mar 7, 2022
2 parents 117a3d2 + 5baa980 commit c4e6fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpcs-scan.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function vipgoci_phpcs_do_scan(
* Feed PHPCS the temporary file specified by our caller.
*/
$cmd = sprintf(
'%s %s --severity=%s --report=%s',
'%s -d memory_limit=500M %s --severity=%s --report=%s',
escapeshellcmd( $phpcs_php_path ),
escapeshellcmd( $phpcs_path ),
escapeshellarg( (string) $phpcs_severity ),
Expand Down

0 comments on commit c4e6fc1

Please sign in to comment.