:octocat: +phpmd command

This commit is contained in:
smiley
2024-11-21 15:28:20 +01:00
parent 53b52b7134
commit a54c1a56a0
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -1,4 +1,5 @@
{
"$schema": "https://getcomposer.org/schema.json",
"name": "chillerlan/php-qrcode",
"description": "A QR Code generator and reader with a user-friendly API. PHP 7.4+",
"homepage": "https://github.com/chillerlan/php-qrcode",
@@ -79,6 +80,7 @@
"scripts": {
"phan": "@php vendor/bin/phan",
"phpcs": "@php vendor/bin/phpcs",
"phpmd": "@php vendor/bin/phpmd src text ./phpmd.xml.dist",
"phpunit": "@php vendor/bin/phpunit"
},
"config": {
+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"/>