|
1 | 1 | <?xml version="1.0"?>
|
2 |
| -<ruleset name="Jakub Onderka Coding Standard"> |
| 2 | +<ruleset name="PHP-Console-Highlighter"> |
3 | 3 | <description>A coding standard for Jakub Onderka's projects.</description>
|
4 | 4 |
|
5 |
| - <file>./src/</file> |
| 5 | + <!-- |
| 6 | + ############################################################################# |
| 7 | + COMMAND LINE ARGUMENTS |
| 8 | + https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml |
| 9 | + ############################################################################# |
| 10 | + --> |
| 11 | + |
| 12 | + <!-- Scan all files. --> |
| 13 | + <file>.</file> |
| 14 | + |
| 15 | + <!-- Exclude dependencies and auto-generated files. --> |
| 16 | + <exclude-pattern>*/build/*</exclude-pattern> |
| 17 | + <exclude-pattern>*/vendor/*</exclude-pattern> |
6 | 18 |
|
7 | 19 | <!-- Only check PHP files. -->
|
8 | 20 | <arg name="extensions" value="php"/>
|
|
13 | 25 | <!-- Strip the filepaths down to the relevant bit. -->
|
14 | 26 | <arg name="basepath" value="./"/>
|
15 | 27 |
|
16 |
| - <rule ref="./vendor/php-parallel-lint/php-code-style/ruleset.xml"/> |
| 28 | + <!-- Check up to 8 files simultaneously. --> |
| 29 | + <arg name="parallel" value="8"/> |
| 30 | + |
| 31 | + |
| 32 | + <!-- |
| 33 | + ############################################################################# |
| 34 | + USE THE PHPParallelLint RULESET |
| 35 | + ############################################################################# |
| 36 | + --> |
| 37 | + |
| 38 | + <!-- Set the supported PHP versions for PHPCompatibility (included in PHPParallelLint). --> |
| 39 | + <config name="testVersion" value="5.4-"/> |
| 40 | + |
| 41 | + <rule ref="PHPParallelLint"/> |
| 42 | + |
| 43 | + <rule ref="Generic.Metrics.CyclomaticComplexity.MaxExceeded"> |
| 44 | + <type>warning</type> |
| 45 | + </rule> |
| 46 | + |
| 47 | + <rule ref="Generic.Files.LineLength"> |
| 48 | + <exclude-pattern>*/tests/*</exclude-pattern> |
| 49 | + </rule> |
17 | 50 |
|
18 |
| - <rule ref="Generic.Metrics.CyclomaticComplexity.MaxExceeded"> |
19 |
| - <type>warning</type> |
20 |
| - </rule> |
21 | 51 | </ruleset>
|
0 commit comments