:octocat: +phpmd command

This commit is contained in:
smiley
2024-11-17 20:37:19 +01:00
parent 747a38dd30
commit 10ed887663
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -87,6 +87,7 @@
"@php vendor/bin/phpbench run"
],
"phpcs": "@php vendor/bin/phpcs",
"phpmd": "@php vendor/bin/phpmd src text ./phpmd.xml.dist",
"phpstan": "@php vendor/bin/phpstan",
"phpstan-baseline": "@php vendor/bin/phpstan --generate-baseline",
"phpunit": "@php vendor/bin/phpunit"
+4
View File
@@ -31,8 +31,12 @@
<exclude name="CamelCaseVariableName"/>
</rule>
<rule ref="rulesets/design.xml">
<exclude name="CouplingBetweenObjects"/>
<exclude name="ExcessiveMethodLength"/>
<exclude name="ExcessiveParameterList"/>
<!-- exits are only used in examples -->
<exclude name="ExitExpression"/>
<exclude name="TooManyPublicMethods"/>
</rule>
<rule ref="rulesets/naming.xml">
<exclude name="LongVariable"/>