-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
35 lines (27 loc) · 1.21 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
<?xml version="1.0"?>
<ruleset name="Commerce Extension ruleset">
<description>Commerce Extension 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/commerce_dynamictaxmode/</file>
<!-- Exclude paths -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/model/*/mysql/*</exclude-pattern>
<exclude-pattern>*/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">
<!-- Modules have side effects because they include an autoloader; that's fine -->
<exclude-pattern>core/components/commerce_dynamictaxmode/src/Module.php</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>*/model/*/*.class.php</exclude-pattern>
</rule>
</ruleset>