Skip to content

Commit 4691601

Browse files
authored
Merge pull request #148 from magento-commerce/imported-svera-magento-coding-standard-362
[Imported] AC-1895: Avoid having duplicated issues in magento-coding-standard
2 parents 7fbdf31 + 72be356 commit 4691601

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Diff for: Magento2/ruleset.xml

+9-8
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
<exclude-pattern>*\.phtml$</exclude-pattern>
1717
<exclude-pattern>*\.xml$</exclude-pattern>
1818
</rule>
19-
<rule ref="Generic.PHP.DeprecatedFunctions">
20-
<severity>10</severity>
21-
<type>error</type>
22-
<exclude-pattern>*\.xml$</exclude-pattern>
23-
</rule>
2419
<rule ref="Generic.PHP.NoSilencedErrors">
2520
<severity>10</severity>
2621
<type>error</type>
@@ -169,6 +164,10 @@
169164
<severity>10</severity>
170165
<type>error</type>
171166
</rule>
167+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions">
168+
<severity>10</severity>
169+
<type>error</type>
170+
</rule>
172171
<!-- Severity 9 warnings: Possible security and issues that may cause bugs. -->
173172
<rule ref="Generic.Files.ByteOrderMark">
174173
<severity>9</severity>
@@ -762,9 +761,11 @@
762761
</rule>
763762
<rule ref="PHPCompatibility">
764763
<exclude name="PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound" />
765-
<!-- Following sniffs has been updated or renamed in PHPCompatibility 10 -->
766-
<exclude name="PHPCompatibility.Constants.NewMagicClassConstant" />
767-
<exclude name="PHPCompatibility.Classes.ForbiddenAbstractPrivateMethods" />
764+
<!-- Following sniffs have been updated or renamed in PHPCompatibility 10 -->
765+
<exclude name="PHPCompatibility.Constants.NewMagicClassConstant.Found" />
766+
<exclude name="PHPCompatibility.Classes.ForbiddenAbstractPrivateMethods.Found" />
767+
<!-- Following sniffs have an equivalent in PHPCS -->
768+
<exclude name="PHPCompatibility.Syntax.ForbiddenCallTimePassByReference" />
768769
<!-- Check for cross-version support for stated PHP version and higher. -->
769770
<config name="testVersion" value="7.4-"/>
770771
</rule>

0 commit comments

Comments
 (0)