-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
42 lines (33 loc) · 1.32 KB
/
phpcs.xml
File metadata and controls
42 lines (33 loc) · 1.32 KB
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
<?xml version="1.0"?>
<ruleset name="NHR SmartSync Table Coding Standards">
<description>Custom PHPCS rules for NHR SmartSync Table plugin.</description>
<!--
Run phpcs command from plugin directory:
phpcs . -d memory_limit=512M
-->
<!-- Include WordPress Coding Standards -->
<rule ref="WordPress"/>
<!-- Specific plugin directories to check -->
<file>includes/</file>
<!-- Files or directories to exclude -->
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>assets/*</exclude-pattern>
<!-- <rule ref="WordPress.NamingConventions.ValidHookName.InvalidPrefix">
<exclude-pattern>*/src/*</exclude-pattern>
</rule> -->
<!-- Disable specific rules -->
<rule ref="WordPress.NamingConventions.ValidVariableName.NotSnakeCase">
<severity>0</severity>
</rule>
<!-- Ignore inline comments formatting -->
<rule ref="Generic.Commenting.DocComment.Missing">
<severity>0</severity>
</rule>
<!-- Set error and warning levels -->
<!-- <arg name="severity" value="5"/>
<arg name="warning-severity" value="5"/> -->
<!-- Specific PHP version -->
<!-- <config name="minimum_supported_wp_version" value="5.0"/>
<config name="testVersion" value="7.4-"/> -->
</ruleset>