-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
32 lines (25 loc) · 1 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
<?xml version="1.0"?>
<ruleset name="MODX Coding Standards">
<description>Standard 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.2-"/>
<file>_bootstrap</file>
<file>core/components/aikit/</file>
<!-- Exclude paths -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/src/Model/mysql/*.php</exclude-pattern>
<exclude-pattern>*/src/Model/metadata.mysql.php</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">
<exclude-pattern>_bootstrap/index.php</exclude-pattern>
</rule>
</ruleset>