whotrades / phpmd-diff
Tool for creating PHPMD reports, cleared of violations unrelated to the modified lines
1.0.2
2022-04-04 13:08 UTC
Requires
- ext-dom: *
- sebastian/cli-parser: ~1.0
- sebastian/diff: ~4.0
Requires (Dev)
- mikey179/vfsstream: ~1.6
- phpunit/phpunit: ~9.0
- squizlabs/php_codesniffer: ~3.5
This package is auto-updated.
Last update: 2025-03-04 19:34:11 UTC
README
phpmd-diff is a tool for creating PHPMD reports, cleared of violations unrelated to the modified lines.
Installation
composer require-dev whotrades/phpmd-diff
Usage
$ git diff HEAD^1 > /path/to/patch.txt $ /path/to/phpmd /path/to/sources xml /path/to/rulesets.xml --reportfile report.xml $ /path/to/phpmd-diff --path-prefix=/custom/path/prefix --filter=xml /path/to/phpmd/report.xml /path/to/patch.txt 1> /path/to/a/cleaned/report.xml