-
-
Notifications
You must be signed in to change notification settings - Fork 529
/
phpcs.xml
42 lines (36 loc) · 1.61 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="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.4-"/>
<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="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>core/src/Revolution/Processors/Element/TemplateVar/Renders/mgr/</exclude-pattern>
<exclude-pattern>core/src/Revolution/Processors/Element/TemplateVar/Renders/web/</exclude-pattern>
<exclude-pattern>manager/controllers/default/</exclude-pattern>
</rule>
<rule ref="PHPCompatibility"/>
</ruleset>