-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
36 lines (28 loc) · 1.22 KB
/
phpcs.xml.dist
File metadata and controls
36 lines (28 loc) · 1.22 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
36
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Eightshift Coding Standards for WordPress"
xsi:noNamespaceSchemaLocation="https://schema.phpcodesniffer.com/phpcs.xsd">
<description>The coding standards used when writing Eightshift Coding Standards itself</description>
<file>.</file>
<!-- Additional arguments. -->
<arg value="sp"/>
<arg name="basepath" value="./"/>
<arg name="tab-width" value="4"/>
<arg name="parallel" value="8"/>
<arg name="extensions" value="php"/>
<!-- Exclude Composer vendor directory. -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/*UnitTest*.inc</exclude-pattern>
<exclude-pattern>*/Tests/RulesetCheck/*</exclude-pattern>
<rule ref="Eightshift">
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceAfterCloseParenthesis"/>
<!-- Hack to prevent errors. -->
<exclude name="Eightshift.Shortcodes.DisallowDoShortcode.shortcodeUsageDetected"/>
</rule>
<rule ref="PHPCompatibility">
<severity>5</severity>
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>*/Tests/bootstrap.php</exclude-pattern>
</rule>
</ruleset>