Skip to content

Commit

Permalink
Merge pull request #4 from mediact/feature/exclude-m2-phpmd-checks
Browse files Browse the repository at this point in the history
1.4.0 Feature: excluded some Magento 2 PHPMD checks
  • Loading branch information
ashokadewit authored Jun 5, 2020
2 parents 5531fb9 + 34ff1ac commit 73c4ea2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/MediactMagento2/phpmd.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<ruleset name="MediaCT PHPMD rules"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0
http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="
http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
MediaCT defined PHPMD rules
</description>

<rule ref="rulesets/cleancode.xml">
<exclude name="ElseExpression"/>
<exclude name="StaticAccess"/>
<exclude name="UndefinedVariable"/>
<exclude name="BooleanArgumentFlag"/>
</rule>
<rule ref="rulesets/codesize.xml">
<exclude name="ExcessiveParameterList"/>
</rule>
<rule ref="rulesets/design.xml">
<exclude name="CouplingBetweenObjects"/>
</rule>
<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable"/>
<exclude name="LongVariable"/>
</rule>
<rule ref="rulesets/unusedcode.xml">
<exclude name="UnusedFormalParameter"/>
<exclude name="UnusedLocalVariable"/>
</rule>
</ruleset>

0 comments on commit 73c4ea2

Please sign in to comment.