Download the PHP package tomasvotruba/phpstan-bodyscan without Composer
On this page you can find all versions of the php package tomasvotruba/phpstan-bodyscan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tomasvotruba/phpstan-bodyscan
More information about tomasvotruba/phpstan-bodyscan
Files in tomasvotruba/phpstan-bodyscan
Package phpstan-bodyscan
Short Description Get error count for each PHPStan level
License MIT
Informations about the package phpstan-bodyscan
PHPStan Bodyscan
- Do you want to get quick glimpse of new project code quality?
- Do you want to know, what PHPStan level is the best for your project?
- Do you want to know, how much errors you're facing per level to see how hard it will be to reach them?
Get error count for each PHPStan level!
How does it work?
First, we look into the project root for phpstan.neon
file.
- If found, we reuse it.
- If not, we look for defaults source code paths like
/src
,/app
,/tests
, etc.
Then we run PHPStan for each level from 0 to 8. We count errors and display them in a table.
Install
Usage
Run tool in your project. It will take some time, as it will run full PHPStan analysis for each level.
↓
To get errors count per level:
Do you want to run levels including all ignored messages?
Do you want to run levels without extensions?
Do you need a JSON format?
We got you covered:
↓
Limit level count
Are you interested only in a few levels? You can limit ranges by the options:
Measure type coverage
Experimental!
Are you interested in learning param, return and property type declaration coverage of the project?
Run type-coverage
command ↓
↓
Based on type-coverage package.
Load env file
Some projects need to load .env
file to run PHPStan. You can do it like this:
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!