Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b120c1

Browse files
committed
build: phpmd exclude pattern
1 parent f37c917 commit 7b120c1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"post-install-cmd": [
2828
"php -r \"if (is_dir('.git/hooks/')) {copy('.git-pre-commit', '.git/hooks/pre-commit'); chmod('.git/hooks/pre-commit', 0755);}\""
2929
],
30-
"lint": "phpcs --standard=phpcs.xml . && phpmd . text phpmd.xml --exclude vendor",
30+
"lint": "phpcs --standard=phpcs.xml . && phpmd . text phpmd.xml",
3131
"lint-fix": "phpcbf --standard=phpcs.xml .",
3232
"test": "XDEBUG_MODE=coverage phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/Unit"
3333
},

phpmd.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<pmd>
3+
<exclude-pattern>/vendor/</exclude-pattern>
34
<rule ref="rulesets/cleancode.xml">
45
<exclude name="StaticAccess" />
56
</rule>

0 commit comments

Comments
 (0)