-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
32 lines (24 loc) · 967 Bytes
/
phpcs.xml
File metadata and controls
32 lines (24 loc) · 967 Bytes
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
<?xml version="1.0"?>
<!-- see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset -->
<ruleset name="Strata coding standard">
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg name="parallel" value="75"/>
<arg value="np"/>
<!-- Files to scan -->
<file>./src</file>
<file>./tests</file>
<!-- Ignore mock response info files -->
<exclude-pattern>tests/*.info.php</exclude-pattern>
<!-- Coding standards -->
<rule ref="PSR12" />
<!-- Require strict types declare statement -->
<rule ref="Generic.PHP.RequireStrictTypes">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<!-- Namespaces and classes MUST follow PSR-0.
This means each class is in a file by itself, and is in a namespace of at least one level: a top-level vendor name. -->
<rule ref="PSR1.Classes.ClassDeclaration">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
</ruleset>