-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
31 lines (24 loc) · 910 Bytes
/
phpcs.xml.dist
File metadata and controls
31 lines (24 loc) · 910 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
<?xml version="1.0"?>
<ruleset name="Lumberjack">
<description>Lumberjack Coding Standard</description>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg value="p"/>
<!-- Use PSR12 as a base -->
<rule ref="PSR12"/>
<!-- Allow snake_case in tests -->
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<!-- Allow multiple classes in a file for tests (stubs/mocks) -->
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<!-- Allow multiple namespaces/classes in a file for tests -->
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<file>src</file>
<file>tests</file>
<exclude-pattern>vendor/*</exclude-pattern>
</ruleset>