-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml
34 lines (26 loc) · 1.11 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
<?xml version="1.0"?>
<ruleset name="MODX Extra ruleset">
<description>MODX Extra ruleset</description>
<arg name="extensions" value="php" />
<arg name="colors" />
<arg value="ps" />
<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility" />
<config name="testVersion" value="8.0-"/>
<file>core/components/</file>
<!-- Exclude paths -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/Model/mysql/*</exclude-pattern>
<!-- Our base rule: set to PSR12-->
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength.TooLong" />
</rule>
<!-- PHP compatibility checks -->
<rule ref="PHPCompatibility"/>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<!-- Modules have side effects because they include an autoloader; that's fine -->
<exclude-pattern>core/components/commerce_payrexx/src/Modules/Payrexx.php</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<!-- <exclude-pattern>file/with/no-namespace.php</exclude-pattern>-->
</rule>
</ruleset>