Skip to content

Commit a54c1a5

Browse files
committed
:octocat: +phpmd command
1 parent 53b52b7 commit a54c1a5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://getcomposer.org/schema.json",
23
"name": "chillerlan/php-qrcode",
34
"description": "A QR Code generator and reader with a user-friendly API. PHP 7.4+",
45
"homepage": "https://github.com/chillerlan/php-qrcode",
@@ -79,6 +80,7 @@
7980
"scripts": {
8081
"phan": "@php vendor/bin/phan",
8182
"phpcs": "@php vendor/bin/phpcs",
83+
"phpmd": "@php vendor/bin/phpmd src text ./phpmd.xml.dist",
8284
"phpunit": "@php vendor/bin/phpunit"
8385
},
8486
"config": {

phpmd.xml.dist

Lines changed: 4 additions & 0 deletions
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)