|
1 | 1 | <?xml version="1.0"?>
|
2 |
| -<ruleset name="BigBox"> |
| 2 | +<ruleset name="WordPress Coding Standards for BigBox"> |
3 | 3 | <description>BigBox coding standards</description>
|
4 | 4 |
|
5 |
| - <!-- For help in understanding this file: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml --> |
6 |
| - <!-- For help in using PHPCS: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage --> |
7 |
| - |
8 | 5 | <!-- What to scan -->
|
9 | 6 | <file>.</file>
|
10 |
| - <!-- Ignoring Files and Folders: |
11 |
| - https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-files-and-folders --> |
12 | 7 | <exclude-pattern>./node_modules/</exclude-pattern>
|
13 | 8 | <exclude-pattern>./vendor/</exclude-pattern>
|
14 | 9 |
|
15 | 10 | <!-- How to scan -->
|
16 |
| - <arg value="sp"/> <!-- Show sniff and progress --> |
17 |
| - <arg name="colors"/> <!-- Show results with colors --> |
18 |
| - <arg name="basepath" value="."/> <!-- Strip the file paths down to the relevant bit --> |
19 |
| - <arg name="parallel" value="50"/> <!-- Enables parallel processing when available for faster results. --> |
20 |
| - <arg name="extensions" value="php"/> <!-- Limit to PHP files --> |
| 11 | + <arg value="ps"/> |
| 12 | + <arg name="extensions" value="php"/> |
21 | 13 |
|
22 |
| - <!-- Rules: Check PHP version compatibility - see |
23 |
| - https://github.com/PHPCompatibility/PHPCompatibilityWP --> |
24 | 14 | <rule ref="PHPCompatibilityWP"/>
|
25 |
| - <!-- For help in understanding this testVersion: |
26 |
| - https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions --> |
27 |
| - <config name="testVersion" value="7.1-"/> |
28 |
| - |
29 |
| - <!-- Rules: WordPress Coding Standards - see |
30 |
| - https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards --> |
31 |
| - <config name="minimum_supported_wp_version" value="4.7"/> |
32 |
| - <!-- For help in understanding this custom sniff properties: |
33 |
| - https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties --> |
34 |
| - <rule ref="WordPress"/> |
| 15 | + <config name="testVersion" value="5.6-"/> |
| 16 | + <config name="minimum_supported_wp_version" value="5.0"/> |
35 | 17 |
|
36 |
| - <rule ref="WordPress.WP.I18n"> |
37 |
| - <properties> |
38 |
| - <property name="text_domain" type="array"> |
39 |
| - <element name="bigbox"/> |
40 |
| - </property> |
41 |
| - </properties> |
42 |
| - </rule> |
| 18 | + <rule ref="WordPress-Core"/> |
| 19 | + <rule ref="WordPress-Docs"/> |
| 20 | + <rule ref="WordPress.WP.I18n"/> |
| 21 | + <config name="text_domain" value="bigbox"/> |
43 | 22 |
|
44 |
| - <rule ref="WordPress.WhiteSpace.ControlStructureSpacing"> |
45 |
| - <properties> |
46 |
| - <property name="blank_line_check" value="true"/> |
47 |
| - </properties> |
48 |
| - </rule> |
| 23 | + <rule ref="WordPress.CodeAnalysis.EmptyStatement"/> |
49 | 24 |
|
50 | 25 | <rule ref="PEAR.Functions.FunctionCallSignature">
|
51 | 26 | <properties>
|
52 | 27 | <property name="allowMultipleArguments" value="false"/>
|
53 |
| - <property name="requiredSpacesAfterOpen" value="1"/> |
54 |
| - <property name="requiredSpacesBeforeClose" value="1"/> |
55 | 28 | </properties>
|
56 | 29 | </rule>
|
57 | 30 |
|
|
0 commit comments