forked from jpfuentes2/php-activerecord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
31 lines (24 loc) · 1.07 KB
/
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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
<description>The coding standard for PHP_CodeSniffer itself.</description>
<file>lib</file>
<file>test</file>
<arg name="report" value="code" />
<arg name="basepath" value="." />
<arg name="colors" />
<arg name="parallel" value="75" />
<arg value="np" />
<!-- Don't hide tokenizer exceptions -->
<rule ref="Internal.Tokenizer.Exception">
<type>error</type>
</rule>
<!-- Include the whole PSR12 standard -->
<rule ref="PSR12">
<!-- Exclude "Method name is not in camel caps format" -->
<exclude name="PSR1.Methods.CamelCapsMethodName" />
<!-- Exclude "Each class must be in a namespace of at least one level (a top-level vendor name)" -->
<exclude name="PSR1.Classes.ClassDeclaration" />
<!-- Exclude "Visibility must be declared on property" -->
<exclude name="PSR2.Classes.PropertyDeclaration.ScopeMissing" />
</rule>
</ruleset>