🔧 PHPCS: speed up by checking files in parallel

This uses a new feature which is available since PHPCS 3.x.
The effect will depend on the system on which PHPCS is being run, but if parallel processing can be run, the build should be faster using this option.
This commit is contained in:
jrfnl 2018-02-27 10:31:24 +01:00
parent dd7a1604e6
commit 878fbde6c4
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@
<!-- Strip the filepaths down to the relevant bit. --> <!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="./"/> <arg name="basepath" value="./"/>
<!-- Check up to 8 files simultanously. -->
<arg name="parallel" value="8"/>
<!-- Only check the PHP, CSS and SCSS files. JS files are checked separately with JSCS and JSHint. --> <!-- Only check the PHP, CSS and SCSS files. JS files are checked separately with JSCS and JSHint. -->
<arg name="extensions" value="php,css,scss/css"/> <arg name="extensions" value="php,css,scss/css"/>