|
1 | 1 | <?xml version="1.0"?>
|
2 |
| -<ruleset> |
| 2 | +<ruleset |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd" |
| 5 | + name="Modularity" |
| 6 | +> |
| 7 | + <!-- Report warnings, but return zero exit code. --> |
| 8 | + <config name="ignore_warnings_on_exit" value="1" /> |
| 9 | + |
| 10 | + <!-- Check for cross-version support for PHP 7.4 and higher. --> |
| 11 | + <config name="testVersion" value="7.4-" /> |
| 12 | + |
| 13 | + <config name="php_version" value="70400" /> |
| 14 | + |
3 | 15 | <file>./src</file>
|
4 | 16 | <file>./tests</file>
|
5 | 17 | <exclude-pattern>./tests/unit/stubs.php</exclude-pattern>
|
6 | 18 |
|
7 |
| - <arg value="sp"/> |
8 |
| - <arg name="colors"/> |
9 |
| - <config name="testVersion" value="7.4-"/> |
10 |
| - <config name="ignore_warnings_on_exit" value="1"/> |
| 19 | + <!-- Use colors, and show sniff error codes and progress. --> |
| 20 | + <arg name="colors" /> |
| 21 | + <arg value="sp" /> |
| 22 | + |
| 23 | + <rule ref="Syde-Extra"> |
| 24 | + <exclude name="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall.MissingTrailingComma" /> |
| 25 | + </rule> |
11 | 26 |
|
12 |
| - <rule ref="Inpsyde"> |
13 |
| - <exclude name="WordPress.PHP.DevelopmentFunctions.error_log_trigger_error" /> |
| 27 | + <rule ref="PSR1.Files.SideEffects.FoundWithSymbols"> |
| 28 | + <exclude-pattern>/tests/boot.php</exclude-pattern> |
14 | 29 | </rule>
|
15 | 30 |
|
16 |
| - <rule ref="Inpsyde.CodeQuality.Psr4"> |
| 31 | + <rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName"> |
17 | 32 | <properties>
|
18 |
| - <property |
19 |
| - name="psr4" |
20 |
| - type="array" |
21 |
| - value=" |
22 |
| - Inpsyde\Modularity=>src, |
23 |
| - Inpsyde\Modularity\Tests=>tests/src, |
24 |
| - Inpsyde\Modularity\Tests\Unit=>tests/unit" |
25 |
| - /> |
| 33 | + <property name="rootNamespaces" type="array"> |
| 34 | + <element key="src" value="Inpsyde\Modularity" /> |
| 35 | + <element key="tests/src" value="Inpsyde\Modularity\Tests" /> |
| 36 | + <element key="tests/unit" value="Inpsyde\Modularity\Tests\Unit" /> |
| 37 | + </property> |
26 | 38 | </properties>
|
27 | 39 | </rule>
|
28 | 40 |
|
29 |
| - <rule ref="Inpsyde.CodeQuality.FunctionLength"> |
| 41 | + <rule ref="Squiz.PHP.Eval"> |
30 | 42 | <exclude-pattern>*/tests/*</exclude-pattern>
|
31 | 43 | </rule>
|
32 |
| - <rule ref="Inpsyde.CodeQuality.ForbiddenPublicProperty"> |
| 44 | + <rule ref="Syde.Functions.FunctionLength.TooLong"> |
33 | 45 | <exclude-pattern>*/tests/*</exclude-pattern>
|
34 | 46 | </rule>
|
35 | 47 | <rule ref="WordPress.PHP.DevelopmentFunctions">
|
|
41 | 53 | <rule ref="WordPress.Security.EscapeOutput">
|
42 | 54 | <exclude-pattern>*/tests/*</exclude-pattern>
|
43 | 55 | </rule>
|
44 |
| - <rule ref="Squiz.PHP.Eval"> |
45 |
| - <exclude-pattern>*/tests/*</exclude-pattern> |
46 |
| - </rule> |
47 | 56 | </ruleset>
|
0 commit comments