-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml
31 lines (23 loc) · 908 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="globalis/chargebee-php-sdk">
<description>globalis/chargebee-php-sdk coding standards</description>
<!-- Scan all files in directory -->
<file>.</file>
<!-- Scan only PHP files -->
<arg name="extensions" value="php"/>
<!-- Ignore dependencies -->
<exclude-pattern>/vendor/</exclude-pattern>
<!-- Show colors in console -->
<arg value="-colors"/>
<!-- Show sniff codes in all reports -->
<arg value="ns"/>
<!-- Use PSR-12 as a base -->
<rule ref="PSR12"/>
<!-- Custom rule: disallow long `array()` syntax, use short `[]` syntax instead -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="PSR1.Methods.CamelCapsMethodName">
<exclude-pattern>./tests/*</exclude-pattern>
<exclude-pattern>./src/QMCollector.php</exclude-pattern>
<exclude-pattern>./src/QMOutputHtml.php</exclude-pattern>
</rule>
</ruleset>