forked from joindin/joindin-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
31 lines (28 loc) · 1.01 KB
/
phpcs.xml.dist
File metadata and controls
31 lines (28 loc) · 1.01 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
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="JoindIn"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<description>The Joind.in coding standard (PSR2, no namespace).</description>
<exclude-pattern>**/config.php</exclude-pattern>
<exclude-pattern>**/database.php</exclude-pattern>
<exclude-pattern>build</exclude-pattern>
<exclude-pattern>tools</exclude-pattern>
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
<exclude-pattern>vendor</exclude-pattern>
<arg name="basepath" value="."/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<file>src/</file>
<file>tests/</file>
<!--
Include all sniffs in the PSR2 standard except these which we override
to turn off certain requirements
-->
<rule ref="PSR2">
<!-- Exclude the "Each class must be in a namespace of at least one level" -->
<exclude name="PSR1.Classes.ClassDeclaration"/>
</rule>
</ruleset>