Download the PHP package juampi92/phpstan-baseline-warnings without Composer
On this page you can find all versions of the php package juampi92/phpstan-baseline-warnings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download juampi92/phpstan-baseline-warnings
More information about juampi92/phpstan-baseline-warnings
Files in juampi92/phpstan-baseline-warnings
Package phpstan-baseline-warnings
Short Description PHPStan baseline warnings generator for GitHub Actions
License MIT
Informations about the package phpstan-baseline-warnings
PHPStan Baseline Warnings
TL;DR: Compare your PR's changed files with your PHPStan baseline, and let developers know they modified a file that has skipped errors, prompting them to fix them!
It also comes avaialble as a github action!
A Composer package that analyzes PHPStan baseline files and generates GitHub PR warning annotations for files with baseline-ignored errors. This helps teams maintain code quality by highlighting technical debt that's been temporarily suppressed through baselines whenever that file is modified.
Installation
You can install the package via composer, or directly using a github action (see below).
Usage
After installing, you can run the command to analyze specific files against your PHPStan baseline:
The command will:
- Read your PHPStan baseline file (default:
phpstan-baseline.neon) - Check if the provided files have any baseline-ignored errors
- Generate GitHub-compatible warning annotations for those files
Options
--baseline-path: Path to your PHPStan baseline file (default:./phpstan-baseline.neon)--base-dir: Base directory for resolving relative paths. Useful when your phpstan config is inside a sub-folder (default:./)
GitHub Action
You can also use this tool as a GitHub Action in your workflows:
This will analyze your PHPStan baseline file and create warning annotations in your GitHub repository.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This package is open-sourced software licensed under the MIT license.
All versions of phpstan-baseline-warnings with dependencies
nette/neon Version ^3.4
php-di/php-di Version ^7.0
symfony/console Version ^6.4