Thanks to visit codestin.com
Credit goes to github.com

Skip to content

szepeviktor/phpstan-bodyscan

 
 

Repository files navigation

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 |
+-------+-------------+

<br>

### Limit level count

Are you interested only in a few levels?

```bash
vendor/bin/phpstan-bodyscan run --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 .evn

Happy coding!

About

[WIP] Get error count for each PHPStan level

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • PHP 100.0%