-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.phpcs.xml.dist
More file actions
35 lines (26 loc) · 1.02 KB
/
.phpcs.xml.dist
File metadata and controls
35 lines (26 loc) · 1.02 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
<?xml version="1.0"?>
<!-- see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset -->
<ruleset name="Strata">
<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 Twig cache files -->
<exclude-pattern>tests/*/twig/cache/*.php</exclude-pattern>
<!-- 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>