forked from discourse/wp-discourse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
28 lines (26 loc) · 1.42 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
<?xml version="1.0"?>
<ruleset name="">
<description>A custom set of code standard rules for the WP Discourse plugin.</description>
<rule ref="WordPress">
<exclude name="Generic.Files.LowercasedFilename" />
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed" />
<!-- DOMDocument uses camelCase. -->
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase" />
</rule>
<rule ref="PHPCompatibility"/>
<extensions>php</extensions>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/lib/wp-new-user-notification.php*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/admin/discourse-sidebar/build/index.asset.php**</exclude-pattern>
<exclude-pattern>*/vendor_namespaced/*</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>scoper.inc.php</exclude-pattern>
</ruleset>