-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
26 lines (21 loc) · 824 Bytes
/
phpcs.xml
File metadata and controls
26 lines (21 loc) · 824 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
<?xml version="1.0"?>
<ruleset name="InitORM QueryBuilder">
<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="160"/>
</properties>
</rule>
<!-- Test files often pin entire expected SQL strings on a single line for
legibility; relax the line-length cap there. -->
<rule ref="Generic.Files.LineLength">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
</ruleset>