forked from prismicio-community/php-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
37 lines (28 loc) · 995 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
37
<?xml version="1.0"?>
<ruleset name="Prismic Coding Standard">
<description>Coding Standard for the Prismic PHP Kit based on Zend Framework Coding Standard</description>
<!-- Paths to check -->
<file>src</file>
<file>tests</file>
<!-- display progress -->
<arg value="p"/>
<arg name="colors"/>
<!-- inherit rules from: -->
<rule ref="PSR2"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Formatting.SpaceAfterNot"/>
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
<properties>
<property name="ignoreNewlines" value="true"/>
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
<property name="ignoreBlankLines" value="false"/>
</properties>
</rule>
<!-- Ignore long lines in test cases -->
<rule ref="Generic.Files.LineLength">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
</ruleset>