|
1 | 1 | <?xml version="1.0"?> |
2 | | -<ruleset name="Augment Types"> |
| 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="Augment Types" |
| 6 | +> |
3 | 7 | <!-- Set a description for this ruleset. --> |
4 | 8 | <description>The code standard rules for Augment Types.</description> |
5 | 9 |
|
6 | 10 | <!-- Strip the file paths down to the relevant bit. --> |
7 | | - <arg name="basepath" value="./" /> |
| 11 | + <arg name="basepath" value="." /> |
8 | 12 | <!-- A comma separated list of file extensions to check. --> |
9 | 13 | <arg name="extensions" value="php" /> |
10 | 14 | <!-- Show sniff and progress. --> |
|
17 | 21 | <!-- What to scan. --> |
18 | 22 | <file>.</file> |
19 | 23 | <!-- Exclude the Composer Vendor directory. --> |
20 | | - <exclude-pattern>/vendor/</exclude-pattern> |
21 | | - |
22 | | - <!-- Include the WordPress ruleset. --> |
23 | | - <rule ref="WordPress-Extra" /> |
24 | | - |
25 | | - <rule ref="WordPress.Files.FileName"> |
26 | | - <exclude name="WordPress.Files.FileName.InvalidClassFileName" /> |
27 | | - <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" /> |
28 | | - </rule> |
| 24 | + <exclude-pattern>vendor</exclude-pattern> |
29 | 25 |
|
30 | 26 | <!-- Include PHP cross-version compatibility. --> |
31 | 27 | <config name="testVersion" value="5.6-" /> |
32 | 28 | <!-- Include minimum supported WP version. --> |
33 | 29 | <config name="minimum_supported_wp_version" value="4.6" /> |
34 | 30 |
|
35 | | - <!-- Include PHP Compatibility Coding Standard for WordPress. --> |
| 31 | + <!-- Include PHP Compatibility Coding Standard. --> |
36 | 32 | <rule ref="PHPCompatibilityWP" /> |
| 33 | + <!-- Include the WordPress ruleset. --> |
| 34 | + <rule ref="WordPress-Extra" /> |
| 35 | + |
| 36 | + <!-- Custom Rules --> |
| 37 | + <rule ref="WordPress.Files"> |
| 38 | + <exclude name="WordPress.Files.FileName.InvalidClassFileName" /> |
| 39 | + <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" /> |
| 40 | + <exclude name="PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose" /> |
| 41 | + <exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody" /> |
| 42 | + </rule> |
37 | 43 | </ruleset> |
0 commit comments