Skip to content

Commit f47ecb6

Browse files
committed
Update ruleset
1 parent eecc0cf commit f47ecb6

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

ruleset.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,28 @@
3636

3737
<!--suppress XmlUnboundNsPrefix -->
3838
<ruleset name="Magento">
39+
<!-- Directories to scan -->
3940
<file>./Block</file>
4041
<file>./Helper</file>
4142
<file>./Model</file>
4243
<file>./Plugin</file>
4344
<file>./Utils</file>
4445
<file>./view</file>
46+
47+
<!-- Exclude non-PHP assets -->
4548
<exclude-pattern>*.js</exclude-pattern>
4649
<exclude-pattern>*.css</exclude-pattern>
50+
51+
<!-- Configure installed_paths for PHPCS -->
4752
<config name="installed_paths"
48-
value="./vendor/magento-ecg/coding-standard/EcgM2,./vendor/magento/magento-coding-standard/Magento2"/>
53+
value="./vendor/magento-ecg/coding-standard/EcgM2,./vendor/magento/magento-coding-standard/Magento2,./vendor/magento/php-compatibility-fork"/>
4954
<description>The Magento coding standard.</description>
55+
56+
<!-- Include ECG Magento 2 rules -->
5057
<rule ref="./vendor/magento-ecg/coding-standard/EcgM2">
5158
</rule>
59+
60+
<!-- Include Magento core coding standard -->
5261
<rule ref="./vendor/magento/magento-coding-standard/Magento2">
5362
<exclude name="Magento2.Functions.StaticFunction"/>
5463
<exclude name="Generic.Metrics.CyclomaticComplexity"/>

0 commit comments

Comments
 (0)