-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
42 lines (32 loc) · 1.25 KB
/
phpcs.xml
File metadata and controls
42 lines (32 loc) · 1.25 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
41
42
<?xml version="1.0"?>
<ruleset name="MyProject">
<!-- Set the default standard -->
<defaultStandard>PSR2</defaultStandard>
<!-- Specify directories or files to be checked -->
<file>/</file>
<!-- Or use a directory -->
<!--<directory>path/to/your/php/files</directory>-->
<!-- Include paths to be checked -->
<!--<include-pattern>path/to/include/*</include-pattern>-->
<!-- Exclude paths from checking -->
<!--<exclude-pattern>path/to/exclude/*</exclude-pattern>-->
<!-- Define severity levels -->
<rule ref="PSR2">
<severity>5</severity>
</rule>
<!-- Set error levels for specific rules -->
<rule ref="PSR2.Methods.FunctionCallSignature">
<severity>10</severity>
</rule>
<!-- Define additional rules or custom sniffs -->
<!--<rule ref="MyCustomRules.CustomSniff"/>-->
<!-- Define report format -->
<arg name="report" value="full"/>
<!-- Set the report file -->
<!--<arg name="report-file" value="phpcs_report.txt"/>-->
<!-- Add custom arguments -->
<!--<arg name="colors"/>-->
<!--<arg name="cache" value=".phpcs-cache"/>-->
<!-- Ignore certain files or directories -->
<!--<exclude-pattern>path/to/exclude/*</exclude-pattern>-->
</ruleset>