Skip to content

Commit 562ec03

Browse files
Simplify PHPCS
1 parent 411eca1 commit 562ec03

File tree

1 file changed

+10
-37
lines changed

1 file changed

+10
-37
lines changed

phpcs.xml

Lines changed: 10 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,30 @@
11
<?xml version="1.0"?>
2-
<ruleset name="BigBox">
2+
<ruleset name="WordPress Coding Standards for BigBox">
33
<description>BigBox coding standards</description>
44

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-
85
<!-- What to scan -->
96
<file>.</file>
10-
<!-- Ignoring Files and Folders:
11-
https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-files-and-folders -->
127
<exclude-pattern>./node_modules/</exclude-pattern>
138
<exclude-pattern>./vendor/</exclude-pattern>
149

1510
<!-- 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"/>
2113

22-
<!-- Rules: Check PHP version compatibility - see
23-
https://github.com/PHPCompatibility/PHPCompatibilityWP -->
2414
<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"/>
3517

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"/>
4322

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"/>
4924

5025
<rule ref="PEAR.Functions.FunctionCallSignature">
5126
<properties>
5227
<property name="allowMultipleArguments" value="false"/>
53-
<property name="requiredSpacesAfterOpen" value="1"/>
54-
<property name="requiredSpacesBeforeClose" value="1"/>
5528
</properties>
5629
</rule>
5730

0 commit comments

Comments
 (0)