Phpstan Bodyscan Save

Get error count for each PHPStan level

Project README

PHPStan Bodyscan

Downloads total

Do you want to get quick glimpse of new project code quality?

Get error count for each PHPStan level!

Install

composer require tomasvotruba/phpstan-bodyscan --dev

Usage

Run tool in your project. It will take some time, as it will run PHPStan for each level.

vendor/bin/phpstan-bodyscan

To get errors count per level:

+-------+-------------+
| Level | Error count |
+-------+-------------+
|     0 |           0 |
|     1 |          35 |
|     2 |          59 |
|     3 |          93 |
|     4 |         120 |
|     5 |         125 |
|     6 |         253 |
|     7 |         350 |
|     8 |         359 |
+-------+-------------+

Limit level count

Are you interested only in a few levels? You can limit ranges by the options:

vendor/bin/phpstan-bodyscan run --min-level 0 --max-level 3

Load env file

Some projects need to load .env file to run PHPStan. You can do it like this:

vendor/bin/phpstan-bodyscan run --env-file some-parameters.env

Debugging

Running PHPStan on a new project you don't know might crash. To save data from finished levels, we dump them to the bodyscan-log.txt file.

If the run crashes for any reason, the PHPStan error output is also dumped to the same file.


Happy coding!

Open Source Agenda is not affiliated with "Phpstan Bodyscan" Project. README Source: TomasVotruba/phpstan-bodyscan
Stars
60
Open Issues
3
Last Commit
3 weeks ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating