Skip to content

Commit

Permalink
:octocat: +phpmd command
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Nov 17, 2024
1 parent 747a38d commit 10ed887
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions phpmd.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down

0 comments on commit 10ed887

Please sign in to comment.