-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml
59 lines (46 loc) · 2.27 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0"?>
<ruleset name="WooCheckoutBraspag" namespace="WooCheckoutBraspag">
<description>WPCS with space indent and without inline documentation.</description>
<file>.</file>
<arg value="s"/>
<!-- Rules from WordPress -->
<rule ref="WordPress-Extra">
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent" />
<exclude name="Squiz.PHP.CommentedOutCode.Found" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_error_log" />
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralDomain" />
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralText" />
<exclude name="WordPress.NamingConventions.ValidVariableName" />
</rule>
<!-- We use spaces not tabs and do not need PHPCBF indent templates -->
<rule ref="Generic.WhiteSpace.DisallowTabIndent" />
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="tabIndent" value="false"/>
</properties>
<exclude-pattern>modules/woocommerce/includes/templates/*</exclude-pattern>
</rule>
<!-- We format Braspag JSON, so we cannot agree with ValidVariableName -->
<rule ref="WordPress.NamingConventions.ValidVariableName">
<exclude-pattern>modules/woocommerce/includes/braspag/*</exclude-pattern>
</rule>
<!-- Ignoring FunctionCallSignature to keep jQuery events more readable -->
<rule ref="PEAR.Functions.FunctionCallSignature.CloseBracketLine">
<exclude-pattern>*.js</exclude-pattern>
</rule>
<rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket">
<exclude-pattern>*.js</exclude-pattern>
</rule>
<rule ref="PEAR.Functions.FunctionCallSignature.MultipleArguments">
<exclude-pattern>*.js</exclude-pattern>
</rule>
<!-- Excluding git, min and vendors -->
<exclude-pattern>\.git/*</exclude-pattern>
<exclude-pattern>*\.min\.js</exclude-pattern>
<exclude-pattern>*\.min\.css</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
</ruleset>