Download the PHP package shipmonk/phpstan-baseline-per-identifier without Composer
On this page you can find all versions of the php package shipmonk/phpstan-baseline-per-identifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shipmonk/phpstan-baseline-per-identifier
More information about shipmonk/phpstan-baseline-per-identifier
Files in shipmonk/phpstan-baseline-per-identifier
Package phpstan-baseline-per-identifier
Short Description Split your PHPStan baseline into multiple files, one per error identifier. Supports both neon baseline and PHP baseline.
License MIT
Informations about the package phpstan-baseline-per-identifier
PHPStan baseline per error identifier
Split your PHPStan baseline into multiple files, one per error identifier:
Each file looks like this:
Installation:
Usage
[!IMPORTANT] This usage is available since version 2.0. See legacy usage below if you are still using PHPStan 1.x
Remove old single baseline include:
Run native baseline generation and split it into multiple files via our script (other baseline files will be placed beside the loader):
Setup the baselines loader:
(optional) You can simplify generation with e.g. composer script:
Legacy usage
> _This usage is deprecated since 2.0, but it works in all versions. Downside is that it cannot utilize result cache and does not support `rawMessage`._
Setup where your baseline files should be stored and include its loader:
Prepare composer script to simplify generation:
Cli options
The vendor/bin/split-phpstan-baseline script accepts the following options:
--tabsto use tabs as indents in generated neon files--no-error-countto remove errors count in generated files
PHP Baseline
- If the loader file extension is php, the generated files will be php files as well