forked from awsmin/wp-job-openings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
46 lines (34 loc) · 1.4 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
44
45
46
<?xml version="1.0"?>
<ruleset name="WP Job Openings">
<description>WP Job Openings coding standard.</description>
<config name="minimum_supported_wp_version" value="4.5" />
<!-- Check for cross-version support for PHP 5.6 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>
<!-- Exclude libraries. -->
<exclude-pattern>/lib/*</exclude-pattern>
<rule ref="PHPCompatibilityWP" />
<rule ref="WordPress-Core" />
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>wp-job-openings.php</exclude-pattern>
</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="wp-job-openings" />
</property>
</properties>
</rule>
</ruleset>