kamazee/pr-filter

Tool for narrowing code quality tools reporting for pull requests

Maintainers

Package info

github.com/kamazee/pr-filter

pkg:composer/kamazee/pr-filter

Statistics

Installs: 32 826

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

1.1.0 2026-04-14 12:16 UTC

This package is auto-updated.

Last update: 2026-04-14 12:17:37 UTC


README

PHP 7.2

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