forked from modxcms/revolution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
37 lines (31 loc) · 1.26 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
<?xml version="1.0"?>
<ruleset name="MODX Coding Standards">
<description>MODX dev PHP_CodeSniffer ruleset</description>
<!-- Show progress, show the error codes for each message (source). -->
<arg value="ps" />
<arg name="extensions" value="php" />
<arg name="colors" />
<config name="installed_paths" value="core/vendor/phpcompatibility/php-compatibility" />
<config name="testVersion" value="7.2-"/>
<file>_build</file>
<file>connectors</file>
<file>core</file>
<file>manager</file>
<file>setup</file>
<!-- Exclude paths -->
<exclude-pattern>manager/assets/ext3/</exclude-pattern>
<exclude-pattern>core/lexicon/</exclude-pattern>
<exclude-pattern>core/components/</exclude-pattern>
<exclude-pattern>core/packages/</exclude-pattern>
<exclude-pattern>assets/components/</exclude-pattern>
<exclude-pattern>setup/lang/</exclude-pattern>
<!-- Ignore vendor files -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Ignore generated model files -->
<exclude-pattern>*/mysql/*.php</exclude-pattern>
<!-- Our base rule: set to PSR12 -->
<rule ref="PSR12">
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
</rule>
<rule ref="PHPCompatibility"/>
</ruleset>