-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml
43 lines (32 loc) · 1.28 KB
/
phpcs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0"?>
<ruleset name="AWSM Team">
<description>AWSM Team coding standard.</description>
<config name="minimum_supported_wp_version" value="4.0" />
<!-- Check for cross-version support for PHP 5.4 and higher. -->
<config name="testVersion" value="5.6-" />
<arg name="extensions" value="php" />
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- Exclude the Node Modules directory. -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<!-- Exclude build directory. -->
<exclude-pattern>/build/*</exclude-pattern>
<rule ref="PHPCompatibilityWP" />
<rule ref="WordPress-Core" />
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
</rule>
<rule ref="WordPress-Extra">
<exclude name="WordPress.WhiteSpace.PrecisionAlignment.Found" />
<exclude name="WordPress.PHP.YodaConditions" />
</rule>
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="default" />
<element value="awsm-team" />
</property>
</properties>
</rule>
</ruleset>