-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
34 lines (27 loc) · 1.09 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
29
30
31
32
33
34
<?xml version="1.0"?>
<ruleset name="composer-installer">
<description>Coding standards for WHMCS Modules</description>
<arg name="extensions" value="php"/>
<!-- Show sniff codes in all reports, and progress when running -->
<arg value="sp"/>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="."/>
<file>.</file>
<exclude-pattern>*/.git*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<rule ref="PSR12"/>
<rule ref="PSR1"/>
<rule ref="Generic.Formatting.MultipleStatementAlignment">
<properties>
<property name="maxPadding" value="40" />
</properties>
</rule>
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>*/tests/bootstrap\.php$</exclude-pattern>
</rule>
<!-- Fixture method names in the test classes will be in snake_case because of the PHPUnit Polyfills. -->
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>*/tests/</exclude-pattern>
</rule>
</ruleset>