-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
35 lines (30 loc) · 1.37 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
<?xml version="1.0"?>
<ruleset name="Torro Forms Double Opt In PHPCS Rules">
<description>A custom set of PHPCS rules for Torro Forms Double Opt In.</description>
<file>./torro-forms-double-opt-in.php</file>
<file>./src</file>
<exclude-pattern>*/src/translations/*</exclude-pattern>
<exclude-pattern>*/templates/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName"/>
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis"/>
<exclude name="WordPress.PHP.DevelopmentFunctions"/>
<exclude name="WordPress.VIP.RestrictedFunctions"/>
<exclude name="WordPress.VIP.RestrictedVariables"/>
<exclude name="WordPress.VIP.SessionFunctionsUsage"/>
<exclude name="WordPress.VIP.SessionVariableUsage"/>
<exclude name="WordPress.VIP.SuperGlobalInputUsage"/>
<exclude name="WordPress.VIP.ValidatedSanitizedInput"/>
<exclude name="WordPress.Variables.GlobalVariables.OverrideProhibited"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar"/>
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="string" value="torro-forms-double-opt-in"/>
</properties>
</rule>
<config name="testVersion" value="5.6-99.0"/>
<rule ref="PHPCompatibility"/>
</ruleset>