-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
36 lines (31 loc) · 1008 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
28
29
30
31
32
33
34
35
36
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>Maxoplata PHP linter settings.</description>
<rule ref="PSR12" />
<file>src</file>
<exclude-pattern>app/public/assets/*</exclude-pattern>
<exclude-pattern>app/public/js/*</exclude-pattern>
<exclude-pattern>app/public/.htaccess</exclude-pattern>
<exclude-pattern>app/react/*</exclude-pattern>
<!-- Show progression -->
<arg value="p" />
<!-- Tabs instead of spaces -->
<arg name="tab-width" value="4" />
<rule ref="PSR12">
<exclude name="Generic.WhiteSpace.DisallowTabIndent" />
</rule>
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent" />
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4" />
<property name="tabIndent" value="true" />
</properties>
</rule>
<!-- Line length -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="180" />
<property name="absoluteLineLimit" value="0" />
</properties>
</rule>
</ruleset>