Closed
Description
The recently added PHPCBF pre-commit hook is great to a point, and then it isn't.
Sample output:
PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE FIXED REMAINING
----------------------------------------------------------------------
...iter4/tests/system/Router/RouteCollectionTest.php FAILED TO FIX
...s/CodeIgniter4/tests/system/Router/RouterTest.php FAILED TO FIX
----------------------------------------------------------------------
A TOTAL OF 390 ERRORS WERE FIXED IN 2 FILES
----------------------------------------------------------------------
PHPCBF FAILED TO FIX 2 FILES
----------------------------------------------------------------------
Time: 15.68 secs; Memory: 24Mb
Fix the error before commit.
You will notice the clear indication of just what needs fixing? Me neither :(
I encounter this issue with mods made to tests/system/Router/RouterTest.php.
I can comment out everything, and then uncomment it one method at a time, and all goes well until the next attempt at a commit, and the above re-appears.
PHPCBF is re-formatting the code, and not per our guidelines, as far as arrays go. I can live with that, sorta, but I can't live without the ability to commit.
Anyone else seen this?
The code reformatted by PHPCBF that produces the above is attached.
RouterTest.php.zip
Metadata
Metadata
Assignees
Labels
No labels