-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathphpcs.xml.dist
37 lines (31 loc) · 1.06 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="SocialWarfare">
<description>Extension of the SocialWarfare</description>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/languages/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<arg name="extensions" value="php" />
<arg name="colors"/>
<!-- Show progress and standards. -->
<arg value="ps"/>
<config name="testVersion" value="8.1-"/>
<rule ref="PHPCompatibilityWP">
<include-pattern>*\.php$</include-pattern>
</rule>
<!-- Require valid syntax. -->
<rule ref="Generic.PHP.Syntax" />
<rule ref="WordPress-VIP-Go" />
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<severity>0</severity>
</rule>
<rule ref="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase">
<severity>0</severity>
</rule>
<rule ref="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid">
<severity>0</severity>
</rule>
<rule ref="WordPress.DB.PreparedSQL.NotPrepared">
<severity>0</severity>
</rule>
</ruleset>