Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7b120c1

Browse files
committed
build: phpmd exclude pattern
1 parentf37c917 commit7b120c1

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
<ruleref="rulesets/cleancode.xml">
45
<excludename="StaticAccess" />
56
</rule>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp