Skip to content

kamazee/pr-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Tool for making PHP code quality tools only report errors relevant to a pull request

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages