-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
27 lines (23 loc) · 988 Bytes
/
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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="View">
<description>The coding standard for the View project.</description>
<!-- Set the target folder to analyze -->
<file>src</file>
<file>tests</file>
<!-- Choose the coding standard -->
<arg name="standard" value="PSR12"/>
<rule ref="PSR12"/>
<!-- Specify the paths to exclude (if any) -->
<exclude-pattern>/src/excluded-folder/</exclude-pattern>
<!-- You can add additional rules and settings here if needed -->
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" extend="true">
<element key="delete" value="unset"/>
<element key="print" value="echo"/>
<element key="create_function" value="null"/>
<element key="sizeof" value="count"/>
</property>
</properties>
</rule>
</ruleset>