Skip to content

Commit 3e527d1

Browse files
committed
Add composer package PHP Mess Detector v2.*
* Package phpmd/phpmd added to require-dev section. * phpmd added to scripts section.
1 parent 47b8a7b commit 3e527d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
},
2222
"require-dev" : {
2323
"phpunit/phpunit" : "8.*",
24-
"squizlabs/php_codesniffer" : "*"
24+
"squizlabs/php_codesniffer" : "*",
25+
"phpmd/phpmd": "2.*"
2526
},
2627
"autoload" : {
2728
"psr-4" : {
@@ -34,6 +35,7 @@
3435
"scripts" : {
3536
"phpunit" : "phpunit ./tests/",
3637
"php_src" : "phpcs --standard=phpcs.xml -s -p --colors ./lib/",
37-
"php_test" : "phpcs --standard=phpcs.xml -s -p --colors ./tests/"
38+
"php_test" : "phpcs --standard=phpcs.xml -s -p --colors ./tests/",
39+
"phpmd" : "phpmd ./ ansi cleancode, codesize, controversial, design, naming, unusedcode --exclude vendor"
3840
}
3941
}

0 commit comments

Comments
 (0)