forked from awsmug/torro-forms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
38 lines (32 loc) · 1.43 KB
/
Copy pathphpcs.xml
File metadata and controls
38 lines (32 loc) · 1.43 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
<?xml version="1.0"?>
<ruleset name="Torro Forms PHPCS Rules">
<description>A custom set of PHPCS rules for Torro Forms.</description>
<file>./src/torro-forms.php</file>
<file>./src/src</file>
<exclude-pattern>*/src/src/components/legacy-upgrades.php</exclude-pattern>
<exclude-pattern>*/src/src/translations/*</exclude-pattern>
<exclude-pattern>*/src/templates/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<arg value="sv"/>
<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"/>
</properties>
</rule>
<config name="testVersion" value="5.6-99.0"/>
<rule ref="PHPCompatibility"/>
</ruleset>