-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml.dist
50 lines (41 loc) · 1.68 KB
/
phpcs.xml.dist
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
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>The coding standard for Antilope.</description>
<arg name="basepath" value="."/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php,css"/>
<arg name="parallel" value="75" />
<arg value="p" />
<file>bin/</file>
<file>config/</file>
<file>public/</file>
<file>src/</file>
<file>tests/</file>
<file>standards/</file>
<file>translations/</file>
<!-- Include the whole PSR12 standard -->
<rule ref="PSR12"></rule>
<!-- Include Antilope custom ruleset -->
<rule ref="./standards/Antilope">
<exclude-pattern>*/config/*</exclude-pattern>
<exclude-pattern>*/public/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/translations/*</exclude-pattern>
</rule>
<!-- Add some rules -->
<rule ref="Generic.Metrics.NestingLevel"></rule>
<rule ref="Generic.Arrays.ArrayIndent"></rule>
<rule ref="Squiz.Arrays.ArrayDeclaration.SpaceAfterKeyword"></rule>
<rule ref="Generic.Files.LineLength">
<exclude-pattern>*/translations/*</exclude-pattern>
</rule>
<!-- CSS rules -->
<rule ref="Squiz.CSS.Indentation"></rule>
<rule ref="Squiz.CSS.MissingColon"></rule>
<rule ref="Squiz.CSS.ColonSpacing"></rule>
<rule ref="Squiz.CSS.SemicolonSpacing"></rule>
<rule ref="Squiz.CSS.LowercaseStyleDefinition"></rule>
<rule ref="Squiz.CSS.DisallowMultipleStyleDefinitions"></rule>
</ruleset>