kamazee / pr-filter
Tool for narrowing code quality tools reporting for pull requests
1.1.0
2026-04-14 12:16 UTC
Requires
- php: ^7.2 || ^8.0
- ext-dom: *
- mnapoli/silly: ^1.7
- php-di/php-di: ^6.0 || ^7.1
- ptlis/diff-parser: ^1.0
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^9.6 || ^10.5 || ^11.5
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2026-04-14 12:17:37 UTC
README
PR Filter
Filter checkstyle.xml according to a diff
Usage
phpcs -q --report=checkstyle | sponge phpcs-checkstyle.xml git diff main > main.diff vendor/bin/prf filter-checkstyle main.diff phpcs-checkstyle.xml filtered-checkstyle.xml --base-path=$(pwd)
Options
prf filter-checkstyle [-b|--base-path=] diff infile [outfile]
| Argument | Description | |
|---|---|---|
--base-path |
-b |
If set, will be removed from paths in checkstyle.xml |
| positional, required | diff | Path to diff file |
| positional, required | infile | Path to checkstyle.xml to be filtered |
| positional, optional | outfile | Path to filtered checkstyle.xml, or will overwrite infile |