-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpcs.xml
42 lines (34 loc) · 1.34 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
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0"?>
<ruleset
name="MMLProject"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<description>MMLProject Standard</description>
<arg name="colors"/>
<file>./src</file>
<file>./config</file>
<file>./routes</file>
<file>./database</file>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/runtime/*</exclude-pattern>
<exclude-pattern>*/.github/*</exclude-pattern>
<exclude-pattern>*/.environment/*</exclude-pattern>
<exclude-pattern>*/.docker/*</exclude-pattern>
<exclude-pattern>*/.tevun/*</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<arg name="extensions" value="php" />
<autoload>./vendor/autoload.php</autoload>
<rule ref="PSR12"/>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>m\d{6}_\d{6}_.+\.php$</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
<exclude-pattern>m\d{6}_\d{6}_.+\.php$</exclude-pattern>
</rule>
<rule ref="Generic.Files.LineLength">
<exclude-pattern>*/config/dependencies.php</exclude-pattern>
<exclude-pattern>*/database/migrations/*</exclude-pattern>
</rule>
</ruleset>