szepeviktor/phpstan-wordpress

How long should PHPStan take?

jdamner opened this issue · 3 comments

A private project I work on takes around 8-10 minutes to run analysis for. It's a bespoke theme and a bunch of bespoke/private plugins so the code base is fairly large but still seems like an excessive time period considering other tools like phpcs finish in a few seconds at most. PHPUnit takes a similar amount of time, so is this just an issue of scale?

Hello James! 👋🏻
Thank you for your report.

This is going on in #99

You can see which file takes longer to analyze by adding --debug -vvv

also checkout https://gist.github.com/ruudk/41897eb59ff497b271fc9fa3c7d5fb27 maybe and feel free to open an issue over at https://github.com/phpstan/phpstan if you figured out what it is and can reproduce it with a phpstan.org snippet or a minimal reproduce in a dedicated repo