Skip to content

Commit 10ed887

Browse files
committed
:octocat: +phpmd command
1 parent 747a38d commit 10ed887

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"@php vendor/bin/phpbench run"
8888
],
8989
"phpcs": "@php vendor/bin/phpcs",
90+
"phpmd": "@php vendor/bin/phpmd src text ./phpmd.xml.dist",
9091
"phpstan": "@php vendor/bin/phpstan",
9192
"phpstan-baseline": "@php vendor/bin/phpstan --generate-baseline",
9293
"phpunit": "@php vendor/bin/phpunit"

phpmd.xml.dist

+4
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@
3131
<exclude name="CamelCaseVariableName"/>
3232
</rule>
3333
<rule ref="rulesets/design.xml">
34+
<exclude name="CouplingBetweenObjects"/>
35+
<exclude name="ExcessiveMethodLength"/>
36+
<exclude name="ExcessiveParameterList"/>
3437
<!-- exits are only used in examples -->
3538
<exclude name="ExitExpression"/>
39+
<exclude name="TooManyPublicMethods"/>
3640
</rule>
3741
<rule ref="rulesets/naming.xml">
3842
<exclude name="LongVariable"/>

0 commit comments

Comments
 (0)