-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
38 lines (32 loc) · 1.07 KB
/
phpcs.xml
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
38
<?xml version="1.0"?>
<ruleset name="Custom Ruleset">
<description>PSR-12</description>
<!-- Set the coding standard to PSR-12 -->
<rule ref="PSR12">
<severity>10</severity>
</rule>
<!-- Add custom rules for PHPDoc -->
<rule ref="Squiz.Commenting.ClassComment">
<severity>6</severity>
</rule>
<rule ref="Squiz.Commenting.FunctionComment">
<severity>5</severity>
</rule>
<rule ref="Squiz.Commenting.VariableComment">
<severity>6</severity>
</rule>
<!-- Add rule to remove unused use statements -->
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" value="true"/>
</properties>
</rule>
<!-- Directories to include -->
<file>src</file>
<file>tests</file>
<!-- Exclude specific files -->
<exclude-pattern>tests/Pest.php</exclude-pattern>
<exclude-pattern>tests/TestCase.php</exclude-pattern>
<!-- Exclude specific directories -->
<exclude-pattern>vendor/*</exclude-pattern>
</ruleset>