-
Notifications
You must be signed in to change notification settings - Fork 7
/
.phpcs_ruleset.xml
39 lines (32 loc) · 1.35 KB
/
.phpcs_ruleset.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
37
38
39
<?xml version="1.0"?>
<ruleset name="projekt-n">
<description>REMP CRM coding standards</description>
<!-- ARGUMENTS ############################################## -->
<arg name="encoding" value="UTF-8" />
<arg name="cache" value=".phpcs.cache" />
<!-- do not sniff migrations, assets and Tyzden's migration_scripts -->
<arg name="ignore" value="*/migrations/*,*/TyzdenModule/commands/migration_scripts/*,*/assets/*,*/node_modules/*" />
<!-- RULESET ################################################ -->
<!-- use PSR2 as base for rules -->
<rule ref="PSR2" />
<!-- enforce 'elseif' instead of 'else if' -->
<rule ref="PSR2.ControlStructures.ElseIfDeclaration.NotAllowed">
<type>error</type>
</rule>
<!-- we have too long lines, might be fixed in the future -->
<rule ref="Generic.Files.LineLength">
<severity>0</severity>
</rule>
<!-- do not allow unused imports -->
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" value="true" />
</properties>
</rule>
<!-- enforce alphabetical order of imports -->
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
<properties>
<property name="caseSensitive" value="true" />
</properties>
</rule>
</ruleset>