Download the PHP package brianhenryie/phpstan-checkstyle without Composer
On this page you can find all versions of the php package brianhenryie/phpstan-checkstyle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brianhenryie/phpstan-checkstyle
More information about brianhenryie/phpstan-checkstyle
Files in brianhenryie/phpstan-checkstyle
Package phpstan-checkstyle
Short Description Reads a checkstyle report and prints it using PHPStan formatter
License MIT
Informations about the package phpstan-checkstyle
phpstan-checkstyle
Reads a PHPStan generated checkstyle report and prints it using PHPStan's own output formatters.
Designed to sit at the end of a kamazee/pr-filter pipeline, restoring the familiar PHPStan table format after filtering errors down to only those on changed lines.
Installation
Usage
Read from a file:
Read from stdin:
Error identifiers
Pass -v to include the PHPStan error identifier (e.g. argument.type) alongside each error message:
The identifier is read from the checkstyle source attribute, which PHPStan populates when generating checkstyle output.
Output format
The default output format is table (PHPStan's standard human-readable output). Use --format to select any format PHPStan supports:
Full pipeline example
Limitations
The checkstyle format does not carry PHPStan tip messages. Output will match PHPStan's table format exactly except for those fields.
Development
All versions of phpstan-checkstyle with dependencies
phpstan/phpstan Version ^2.2.2
kamazee/pr-filter Version ^1.1.0
mnapoli/silly Version ^1.10.0