-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs-format.xml.dist
More file actions
35 lines (30 loc) · 1.66 KB
/
Copy pathphpcs-format.xml.dist
File metadata and controls
35 lines (30 loc) · 1.66 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
34
35
<?xml version="1.0"?>
<ruleset name="WP Register Emails (formatting)">
<description>Formatting and style. Separate from the lint: a clean lint does not mean a clean format check.</description>
<file>src</file>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg value="sp"/>
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs,vendor/phpcompatibility/php-compatibility,vendor/phpcompatibility/phpcompatibility-paragonie,vendor/phpcompatibility/phpcompatibility-wp,vendor/phpcsstandards/phpcsutils,vendor/phpcsstandards/phpcsextra"/>
<rule ref="WordPress-Core">
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
<exclude name="WordPress.PHP.YodaConditions"/>
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/>
<exclude name="Generic.WhiteSpace.ScopeIndent"/>
<exclude name="PEAR.Functions.FunctionCallSignature"/>
<exclude name="Squiz.Commenting.FileComment"/>
<exclude name="Universal.Operators.DisallowShortTernary"/>
<exclude name="Generic.Formatting.MultipleStatementAlignment"/>
<exclude name="WordPress.Arrays.MultipleStatementAlignment"/>
</rule>
<rule ref="WordPress.Files.FileName">
<!--
Off, not waived. This is a Composer library autoloaded by PSR-4,
which requires the file to be named for the class it declares:
Email.php. WordPress wants class-email.php. The two rules are
mutually exclusive, and renaming the files to satisfy this one
would stop the autoloader finding them at all.
-->
<exclude-pattern>*</exclude-pattern>
</rule>
</ruleset>