Skip to content

Commit

Permalink
Merge pull request #148 from magento-commerce/imported-svera-magento-…
Browse files Browse the repository at this point in the history
…coding-standard-362

[Imported] AC-1895: Avoid having duplicated issues in magento-coding-standard
  • Loading branch information
sivaschenko authored Jan 19, 2022
2 parents 7fbdf31 + 72be356 commit 4691601
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Magento2/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
<exclude-pattern>*\.phtml$</exclude-pattern>
<exclude-pattern>*\.xml$</exclude-pattern>
</rule>
<rule ref="Generic.PHP.DeprecatedFunctions">
<severity>10</severity>
<type>error</type>
<exclude-pattern>*\.xml$</exclude-pattern>
</rule>
<rule ref="Generic.PHP.NoSilencedErrors">
<severity>10</severity>
<type>error</type>
Expand Down Expand Up @@ -169,6 +164,10 @@
<severity>10</severity>
<type>error</type>
</rule>
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions">
<severity>10</severity>
<type>error</type>
</rule>
<!-- Severity 9 warnings: Possible security and issues that may cause bugs. -->
<rule ref="Generic.Files.ByteOrderMark">
<severity>9</severity>
Expand Down Expand Up @@ -762,9 +761,11 @@
</rule>
<rule ref="PHPCompatibility">
<exclude name="PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound" />
<!-- Following sniffs has been updated or renamed in PHPCompatibility 10 -->
<exclude name="PHPCompatibility.Constants.NewMagicClassConstant" />
<exclude name="PHPCompatibility.Classes.ForbiddenAbstractPrivateMethods" />
<!-- Following sniffs have been updated or renamed in PHPCompatibility 10 -->
<exclude name="PHPCompatibility.Constants.NewMagicClassConstant.Found" />
<exclude name="PHPCompatibility.Classes.ForbiddenAbstractPrivateMethods.Found" />
<!-- Following sniffs have an equivalent in PHPCS -->
<exclude name="PHPCompatibility.Syntax.ForbiddenCallTimePassByReference" />
<!-- Check for cross-version support for stated PHP version and higher. -->
<config name="testVersion" value="7.4-"/>
</rule>
Expand Down

0 comments on commit 4691601

Please sign in to comment.