-
Notifications
You must be signed in to change notification settings - Fork 25
/
phpcs.xml
32 lines (29 loc) · 1.32 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>MODX dev PHP_CodeSniffer ruleset</description>
<file>core</file>
<!-- Show progress, show the error codes for each message (source). -->
<arg value="ps" />
<arg name="extensions" value="php" />
<arg name="colors" />
<!-- Ignore vendor files -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- Our base rule: set to PSR12-->
<rule ref="PSR12">
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
</rule>
<rule ref="PHPCompatibility"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax">
<exclude-pattern>/core/components/fred/model/fred/mysql/*</exclude-pattern>
</rule>
<rule ref="Generic.Arrays.ArrayIndent">
<exclude-pattern>/core/components/fred/model/fred/mysql/*</exclude-pattern>
<exclude-pattern>/core/components/fred/model/fred/metadata.mysql.php</exclude-pattern>
</rule>
<rule ref="Generic.PHP.DeprecatedFunctions"/>
</ruleset>