-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpcs.xml
More file actions
41 lines (32 loc) · 1.19 KB
/
Copy pathphpcs.xml
File metadata and controls
41 lines (32 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
38
39
40
<?xml version="1.0"?>
<ruleset name="VulSearch PHP Coding Standard">
<description>PHP CodeSniffer configuration for VulSearch project</description>
<!-- Use PSR-12 coding standard -->
<rule ref="PSR12"/>
<!-- Show colors in output -->
<arg name="colors"/>
<!-- Show progress -->
<arg value="p"/>
<!-- Paths to check -->
<file>src</file>
<file>public</file>
<!-- Exclude patterns -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/views/cache/*</exclude-pattern>
<exclude-pattern>*/views/templates_c/*</exclude-pattern>
<exclude-pattern>*/logs/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- PHP version compatibility -->
<config name="testVersion" value="8.2-"/>
<!-- Additional rules for better code quality -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="150"/>
</properties>
</rule>
<!-- Allow long lines in comments (for URLs, etc.) -->
<rule ref="Generic.Files.LineLength.TooLong">
<severity>5</severity>
</rule>
</ruleset>