forked from yffaffy/rollbar
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathphpcs.xml
More file actions
33 lines (28 loc) · 1.01 KB
/
phpcs.xml
File metadata and controls
33 lines (28 loc) · 1.01 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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>Generally-applicable sniffs for WordPress plugins</description>
<!-- <rule ref="WordPress-Core">-->
<!-- <exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/>-->
<!-- </rule>-->
<!-- <rule ref="WordPress-Docs"/>-->
<rule ref="PSR12"/>
<!-- Check all PHP files. -->
<arg name="extensions" value="php"/>
<file>./mu-plugin</file>
<file>./src</file>
<file>./tests</file>
<file>./utils</file>
<file>./rollbar.php</file>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Custom rules. -->
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="tabIndent" value="false"/>
</properties>
</rule>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
</ruleset>