-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathphpcs.ruleset.xml
35 lines (30 loc) · 1.2 KB
/
phpcs.ruleset.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="Disqus Wordpress Plugin">
<description>Same as for WordPress plugins with some small changes</description>
<rule ref="WordPress-Core">
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning"/>
<exclude name="Generic.Files.LineLength"/>
<exclude name="Generic.WhiteSpace.ScopeIndent"/>
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/>
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
<exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned"/>
<exclude name="WordPress.NamingConventions.ValidVariableName"/>
<exclude name="WordPress.WhiteSpace.PrecisionAlignment.Found"/>
</rule>
<rule ref="WordPress-Docs" />
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
</properties>
</rule>
<!-- Rules we don't want to error on, but should note -->
<rule ref="Squiz.Commenting.FileComment.Missing">
<severity>3</severity>
</rule>
<rule ref="Squiz.Commenting.ClassComment.SpacingAfter">
<severity>3</severity>
</rule>
<file>./disqus</file>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*/index.php</exclude-pattern>
</ruleset>