-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
37 lines (31 loc) · 1.19 KB
/
phpcs.xml
File metadata and controls
37 lines (31 loc) · 1.19 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
36
37
<?xml version="1.0"?>
<ruleset name="Lunar Date Coding Standard">
<description>Coding standard for Lunar Date package</description>
<!-- Use PSR-12 as base -->
<rule ref="PSR12"/>
<!-- Include source and test directories -->
<file>src/</file>
<file>tests/</file>
<!-- Exclude vendor directory and simple test -->
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>tests/simple_test.php</exclude-pattern>
<!-- Additional rules -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="140"/>
</properties>
</rule>
<!-- Ensure docblocks are present -->
<rule ref="Generic.Commenting.DocComment">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<!-- Type declarations -->
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="newlinesCountBetweenOpenTagAndDeclare" value="1"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
</properties>
</rule>
</ruleset>