I have a php file that I ran through phpcs. It completed successfully and reported that phpcbf could fix 1199 issues. However, when I run phpcbf, it errors out with no explanation at what looks like the end of the process. If I delete about half of the code in the file it will run successfully. I have tried with and without switch --no-patch
. I have tried with -vv
and -v
(the former I found in a forum and latter I just tried on my own). They do not seem to do anything. I would like to know if there is any way to print out more details so I can see what it is getting stuck on? Below is a few snips of the commands I ran. Thanks
[...]
1478 | ERROR | [x] There must be no blank line following an inline
| | comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1199 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Time: 414ms; Memory: 16.5Mb
[...]
C:\Users\name>phpcbf phpFile.php --no-patch
Changing into directory C:\Users\name
Processing CaseModel.php [PHP => 12094 tokens in 1468 lines]... DONE in 329ms (1204 fixable violations)
=> Fixing file: 1/1204 violations remaining [made 50 passes]... ERROR in 29.67 secs
Fixed 0 files
Time: 30.06 secs; Memory: 49.5Mb
C:\Users\name>phpcbf CaseModel.php
Changing into directory C:\Users\name
Processing CaseModel.php [PHP => 12094 tokens in 1468 lines]... DONE in 328ms (1204 fixable violations)
=> Fixing file: 1/1204 violations remaining [made 50 passes]... [31mERROR[0m in 30.12 secs
No fixable errors were found
Time: 30.51 secs; Memory: 49.5Mb