|
1 | 1 | <?xml version="1.0"?>
|
2 |
| -<ruleset name="PHP-Parallel-Lint"> |
| 2 | +<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP-Parallel-Lint" xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd"> |
3 | 3 | <description>PHP Parallel Lint coding standard.</description>
|
4 | 4 |
|
| 5 | + <!-- |
| 6 | + ############################################################################# |
| 7 | + COMMAND LINE ARGUMENTS |
| 8 | + https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml |
| 9 | + ############################################################################# |
| 10 | + --> |
| 11 | + |
| 12 | + <file>.</file> |
| 13 | + |
| 14 | + <!-- Exclude the Examples directory and the Composer vendor directory. --> |
| 15 | + <exclude-pattern>*/tests/examples/*</exclude-pattern> |
| 16 | + <exclude-pattern>*/vendor/*</exclude-pattern> |
| 17 | + |
| 18 | + <!-- Only check PHP files. --> |
| 19 | + <arg name="extensions" value="php,phpt/php"/> |
| 20 | + |
| 21 | + <!-- Show progress, show the error codes for each message (source). --> |
| 22 | + <arg value="ps"/> |
| 23 | + |
| 24 | + <!-- Strip the filepaths down to the relevant bit. --> |
| 25 | + <arg name="basepath" value="./"/> |
| 26 | + |
| 27 | + <!-- Check up to 8 files simultaneously. --> |
| 28 | + <arg name="parallel" value="8"/> |
| 29 | + |
| 30 | + <!-- |
| 31 | + ############################################################################# |
| 32 | + RULES |
| 33 | + ############################################################################# |
| 34 | + --> |
| 35 | + |
5 | 36 | <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
|
6 | 37 | <rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
|
7 | 38 | <rule ref="PEAR.Functions.FunctionDeclaration"/>
|
|
20 | 51 |
|
21 | 52 | <rule ref="Generic.PHP.DisallowShortOpenTag"/>
|
22 | 53 | <rule ref="Generic.PHP.LowerCaseConstant"/>
|
23 |
| - <rule ref="Generic.PHP.NoSilencedErrors"/> |
| 54 | + <rule ref="Generic.PHP.NoSilencedErrors"> |
| 55 | + <exclude-pattern>/bin/skip-linting\.php$</exclude-pattern> |
| 56 | + </rule> |
24 | 57 | <rule ref="Squiz.PHP.GlobalKeyword"/>
|
25 | 58 | <rule ref="Squiz.PHP.LowercasePHPFunctions"/>
|
26 | 59 | <rule ref="Squiz.PHP.NonExecutableCode"/>
|
|
0 commit comments