-
Notifications
You must be signed in to change notification settings - Fork 1
/
.phpcs.xml
29 lines (26 loc) · 1.1 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="TL_MyOffice" xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd">
<!-- Check app code and PHPUnit tests -->
<file>app/</file>
<file>tests/</file>
<!-- Allow warnings in CI -->
<config name="ignore_warnings_on_exit" value="1"/>
<!-- Include modified PSR-12 standard -->
<rule ref="PSR12">
<!-- This contradicts the current Laravel standard -->
<exclude name="PSR12.Traits.UseDeclaration"/>
</rule>
<!-- Ban some functions -->
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="sizeof" value="count"/>
<element key="delete" value="unset"/>
<element key="print" value="echo"/>
<element key="is_null" value="null"/>
<element key="create_function" value="null"/>
</property>
</properties>
</rule>
</ruleset>