-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
25 lines (20 loc) · 789 Bytes
/
phpcs.xml.dist
File metadata and controls
25 lines (20 loc) · 789 Bytes
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
<?xml version="1.0"?>
<ruleset name="NUSA-Gravityforms">
<description>Custom ruleset for NUSA\Gravityforms project</description>
<config name="error-severity" value="1" />
<config name="warning-severity" value="1" />
<exclude-pattern>/vendor/</exclude-pattern>
<exclude-pattern>/node_modules/</exclude-pattern>
<!-- Include the base WordPress ruleset -->
<rule ref="NUSA-WP"/>
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<severity>0</severity>
</rule>
<!-- Disabling PHP class name files structure for our "app" since the plugin uses PSR-4 autoloading -->
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<severity>0</severity>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<severity>0</severity>
</rule>
</ruleset>