-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml
34 lines (27 loc) · 1.01 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
30
31
32
33
34
<?xml version="1.0"?>
<ruleset name="Webikon">
<description>Webikon Coding Standards</description>
<exclude-pattern>htdocs/cms/*</exclude-pattern>
<exclude-pattern>htdocs/content/plugins/*</exclude-pattern>
<exclude-pattern>htdocs/content/uploads/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>storage/*</exclude-pattern>
<!-- Show colors in console -->
<arg value="-colors"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Use PSR-2 as a base -->
<rule ref="PSR2"/>
<!-- Disable side effect, because it is causing warning with anonymous WP hooks declaration -->
<rule ref="PSR1.Files.SideEffects">
<severity>0</severity>
</rule>
<!-- Sniff also generic PHP syntax so we can catch those with GrumPHP and avoid fatal erros. -->
<rule ref="Generic.PHP.Syntax"/>
<!-- Increase line length limit -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="500"/>
</properties>
</rule>
</ruleset>