-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpcs.xml
More file actions
35 lines (30 loc) · 1.39 KB
/
phpcs.xml
File metadata and controls
35 lines (30 loc) · 1.39 KB
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
<?xml version="1.0"?>
<ruleset name="Ibuildings QA Tools Standard Wrapper">
<description>
This is used by the Ibuildings QA tools to wrap the coding standard of your choice.
By default it is less stringent about long lines than other coding standards
</description>
<exclude-pattern>src/*/*Bundle/Resources</exclude-pattern>
<exclude-pattern>src/*/Bundle/*Bundle/Resources</exclude-pattern>
<exclude-pattern>*/Migrations/*</exclude-pattern>
<!-- This is the rule we inherit from. If you want to exlude some specific rules, see the docs on how to do that -->
<rule ref="PSR2"/>
<!-- Lines can be a little bit longer before they break the build -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="150"/>
</properties>
<exclude-pattern>*/Tests/*</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName">
<exclude-pattern>*/Tests/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" type="bool" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
</ruleset>