-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
35 lines (29 loc) · 1.29 KB
/
phpcs.xml.dist
File metadata and controls
35 lines (29 loc) · 1.29 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"?>
<ruleset name="InitORM Database">
<description>PSR-12 with a 120-char soft cap on src/, relaxed for tests where expected SQL strings legitimately run long.</description>
<file>src</file>
<file>tests</file>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg value="p"/>
<rule ref="PSR12"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="200"/>
</properties>
</rule>
<!-- Test files routinely pin long expected SQL strings on one line for
legibility, and the facade carries 100+ long @method annotations
mirrored from QueryBuilderInterface. Relax line-length there. -->
<rule ref="Generic.Files.LineLength">
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>src/Facade/DB.php</exclude-pattern>
</rule>
<!-- Test method names use snake_case ("test_bug3_transaction_…") because
it dramatically improves readability for long behaviour names. The
PSR-1 camelCase rule is intentionally suppressed for tests only. -->
<rule ref="PSR1.Methods.CamelCapsMethodName">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
</ruleset>