forked from MultiSafepay/Magento2Msp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.ruleset.xml
More file actions
20 lines (20 loc) · 1.35 KB
/
Copy pathphpcs.ruleset.xml
File metadata and controls
20 lines (20 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0"?>
<ruleset name="MultiSafepay coding standard for Magento 2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<rule ref="../../../../vendor/magento/magento-coding-standard/Magento2/ruleset.xml">
<exclude name="Squiz.PHP.NonExecutableCode.ReturnNotRequired"/>
<exclude name="Magento2.Files.LineLength.MaxExceeded"/>
<exclude name="Magento2.Functions.DiscouragedFunction"/>
<exclude name="Magento2.CodeAnalysis.EmptyBlock"/>
<exclude name="Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines"/>
<exclude name="Magento2.Security"/>
<exclude name="Magento2.PHP.LiteralNamespaces.LiteralClassUsage"/>
<exclude name="Magento2.Translation.ConstantUsage.VariableTranslation"/>
<exclude name="Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed"/>
<exclude name="Generic.Metrics.NestingLevel.TooHigh"/>
<exclude name="Magento2.Exceptions.ThrowCatch.ThrowCatch"/>
<exclude name="Squiz.PHP.NonExecutableCode.Unreachable"/>
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
<exclude name="Magento2.Exceptions.DirectThrow.FoundDirectThrow"/>
<exclude name="Magento2.PHP.ShortEchoSyntax.ShortEchoTag"/>
</rule>
</ruleset>