php-parallel-lint/PHP-Parallel-Lint

The tool blocks for ever at a certain point without going on and without crashing

realtebo opened this issue · 2 comments

I'm lint a very huge and dark and bad legacy codebase of over 20k files.

All is ok when linting against php 5.6.

Checked 20401 files in 272.9 seconds
No syntax error found

But when linting against php 7.4, at a certain point, the progress 'stops', the tool doesn't output nothing and do not crash and do not go more on.

............................................................ 10620/20400 (52 %)
............................................................ 10680/20400 (52 %)
............................................................ 10740/20400 (52 %)
............................................................ 10800/20400 (52 %)
............................................................ 10860/20400 (53 %)
............................................................ 10920/20400 (53 %)
.....................................

I ask you kindly to add an option to output something verbosely, so we can try to understand what is doing and why it's stopping to do anything without exiting and/or crashing

I already tried to add -j 1 to avoid memory/cpu problems, but nothing changes

I am actually trying to parse one subfolder at time (I have > 100) to narrow the problem

Found the guilty, but I've not understand the reason:

the problem is with jpgrph-1.11 folder [not a vendor folder, is a source, copy/paste here].

Linting each single file with php -l I got only some deprecated, but not syntax check.

I cannot diagnose why the tools is freezing linting this folder.

grogy commented

Hello,

do you have a link to the source code so I can do the detection?