Closed (won't fix)
Project:
Drupal 6 Long Term Support
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2021 at 23:43 UTC
Updated:
8 Jul 2021 at 21:34 UTC
Jump to comment: Most recent
Running code sniffer on D6LTS reports:
-------------------------------------------------------------------------------------------------------------------------
A TOTAL OF 10745 ERRORS AND 1439 WARNINGS WERE FOUND IN 300 FILES
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX 8216 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------
Many of these are cosmetic although some include improvements in fixing occurrences of "else if" and changing them to "elseif". But, is it really worth doing this?
Comments
Comment #2
dsnopekI don't think it's worth doing. Every line we change potentially breaks someone's custom patch, or makes backporting D7 patches harder, or breaks folks stuck on PHP 5.2, etc.
So, we're trying to only change the minimum of code, except in the cases where the change is really high value (ex. adding support for MySQL 8). Fixing all of these issues would mean lots and lots of changes with very low value.
Comment #3
izmeez commentedYes, agree. Chose to do the same. Marking as closed, won't fix.