Skip to content

Commit e9d17dc

Browse files
committed
Add phpmd/phpmd
1 parent 598fd64 commit e9d17dc

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
],
1111
"require": {
1212
"php": "^7.4",
13-
"ergebnis/composer-normalize": "^2.4"
13+
"ergebnis/composer-normalize": "^2.4",
14+
"phpmd/phpmd": "^2.8"
1415
}
1516
}

phpmd.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="MyStandard" xmlns="https://pmd.sourceforge.io/ruleset_xml_schema.xsd">
3+
<rule ref="rulesets/codesize.xml"/>
4+
<rule ref="rulesets/design.xml"/>
5+
<rule ref="rulesets/naming.xml"/>
6+
<rule ref="rulesets/cleancode.xml"/>
7+
</ruleset>

0 commit comments

Comments
 (0)