-
Notifications
You must be signed in to change notification settings - Fork 12
/
phpcs.xml
40 lines (32 loc) · 1.04 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
<?xml version="1.0"?>
<ruleset name="LifterLMS Blocks">
<description>LifterLMS Blocks rules for PHP_CodeSniffer</description>
<file>.</file>
<rule ref="LifterLMS" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="lifterlms" />
</property>
</properties>
</rule>
<!-- Exclude JS -->
<exclude-pattern>assets/*</exclude-pattern>
<exclude-pattern>src/*</exclude-pattern>
<!-- ESlint handles this better -->
<rule ref="Generic.WhiteSpace.ScopeIndent.IncorrectExact">
<exclude-pattern>*.js</exclude-pattern>
</rule>
<rule ref="PEAR.Functions.FunctionCallSignature.Indent">
<exclude-pattern>*.js</exclude-pattern>
</rule>
<rule ref="PEAR.Functions.FunctionCallSignature.EmptyLine">
<exclude-pattern>*.js</exclude-pattern>
</rule>
<rule ref="WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore">
<exclude-pattern>*.js</exclude-pattern>
</rule>
<rule ref="WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter">
<exclude-pattern>*.js</exclude-pattern>
</rule>
</ruleset>