Skip to content

Commit

Permalink
OXDEV-7732: Increase deptrac version; Add phpmd folder;
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelOxid committed Apr 29, 2024
1 parent 4f7fb92 commit ab06d14
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"phpunit/phpunit": "^10.4",
"squizlabs/php_codesniffer": "3.*",
"phpmd/phpmd": "^2.11",
"oxid-esales/oxideshop-ce": "^7.0",
"qossmic/deptrac-shim": "^0.24.0",
"oxid-esales/oxideshop-ce": "dev-b-7.1.x",
"qossmic/deptrac-shim": "^1.0.2",
"codeception/module-rest": "*",
"codeception/module-phpbrowser": "*",
"codeception/module-db": "*",
Expand Down
33 changes: 33 additions & 0 deletions tests/PhpMd/exclude-ruleset.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<ruleset name="Exclude Static Access Rule"
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"
rule="Tests/PhpMd/standard.xml">
<description>
Exclude Static Access Rule
</description>
<rule ref="rulesets/codesize.xml">
<exclude name="ExcessiveParameterList" />
<exclude name="TooManyPublicMethods" />
<exclude name="CyclomaticComplexity" />
<exclude name="NPathComplexity" />
</rule>
<rule ref="rulesets/design.xml">
<exclude name="NumberOfChildren" />
<exclude name="CouplingBetweenObjects" />
</rule>
<rule ref="rulesets/naming.xml">
<exclude name="ShortMethodName" />
<exclude name="ShortVariable" />
<exclude name="LongVariable" />
</rule>
<rule ref="rulesets/unusedcode.xml" />
<rule ref="rulesets/cleancode.xml">
<exclude name="StaticAccess" />
<exclude name="BooleanArgumentFlag" />
</rule>
</ruleset>
18 changes: 18 additions & 0 deletions tests/PhpMd/standard.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<ruleset name="Standard PHPMD rule set for Oxid"
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>
Standard OXID Ruleset
</description>

<rule ref="rulesets/codesize.xml" />
<rule ref="rulesets/design.xml" />
<rule ref="rulesets/naming.xml" />
<rule ref="rulesets/unusedcode.xml" />
<rule ref="rulesets/cleancode.xml" />
</ruleset>

0 comments on commit ab06d14

Please sign in to comment.