forked from phpmyadmin/phpmyadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
38 lines (31 loc) · 1.22 KB
/
Copy pathphpcs.xml
File metadata and controls
38 lines (31 loc) · 1.22 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
36
37
38
<?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=".phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<!-- Make sniff report relative -->
<arg name="basepath" value="."/>
<file>app</file>
<file>bin</file>
<file>config.sample.inc.php</file>
<file>examples</file>
<file>public</file>
<file>src</file>
<file>tests</file>
<exclude-pattern>app/cache/*</exclude-pattern>
<exclude-pattern>app/language_stats.inc.php</exclude-pattern>
<exclude-pattern>tests/doctum-config.php</exclude-pattern>
<rule ref="PhpMyAdmin"/>
<rule ref="Squiz.Classes.ValidClassName.NotPascalCase">
<exclude-pattern>src/Plugins/Transformations/*</exclude-pattern>
</rule>
<!-- Rules that should be followed, but are not required -->
<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators">
<severity>4</severity>
</rule>
<rule ref="SlevomatCodingStandard.PHP.RequireExplicitAssertion">
<severity>4</severity>
</rule>
</ruleset>