-
Notifications
You must be signed in to change notification settings - Fork 4
/
phpcs.xml
39 lines (36 loc) · 1.66 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
35
36
37
38
39
<?xml version="1.0"?>
<ruleset name="eCurring API client">
<description>The coding standards for the eCurring API client.</description>
<!--
If no files or directories are specified on the command line your custom standard can specify what files should
be checked instead.
Note that specifying any file or directory path on the command line will ignore all file tags.
-->
<file>src</file>
<file>tests</file>
<!--
You can hard-code command line values into your custom standard.
Note that this does not work for the command line values:
-v[v][v], -l, -d, -sniffs and -standard
-->
<arg name="colors"/>
<!-- Show progress of the run -->
<arg value="p"/>
<!--
Include all sniffs in the PSR12 standard. Note that the path to the standard does not have to be specified as
the PSR12 standard exists inside the PHP_CodeSniffer install directory.
-->
<rule ref="PSR12"/>
<!--
Not all rules of PSR12 can be processed without breaking changes, for now these rules will be excluded for some
files as suggested in https://github.com/mooore-digital/ecurring-api-php/pull/8#issuecomment-647369861
-->
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
<exclude-pattern>*/src/eCurringHttpClient.php</exclude-pattern>
<exclude-pattern>*/tests/eCurringHttpClientTest.php</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>*/src/Endpoint/AbstractCollectionEndpoint.php</exclude-pattern>
<exclude-pattern>*/src/Endpoint/AbstractEndpoint.php</exclude-pattern>
</rule>
</ruleset>