forked from phpmyadmin/sql-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
34 lines (27 loc) · 1.15 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<!-- Show progress and sniff codes -->
<arg value="ps"/>
<arg name="cache" value=".php_cs.cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<file>src</file>
<file>tests</file>
<file>tools</file>
<exclude-pattern>tools/doctum-config.php</exclude-pattern>
<rule ref="PhpMyAdmin"/>
<rule ref="Generic.Files.LineLength.TooLong">
<exclude-pattern>src/Contexts/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.ControlStructures.RequireSingleLineCondition"/>
<rule ref="SlevomatCodingStandard.Functions.RequireSingleLineCall"/>
<rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces">
<properties>
<property name="ignoreSpacesInComment" value="true"/>
</properties>
</rule>
<rule ref="Squiz.Arrays.ArrayDeclaration.IndexNoNewline">
<exclude-pattern>src/Contexts/*</exclude-pattern>
<exclude-pattern>tests/Tools/templates/*</exclude-pattern>
</rule>
</ruleset>