Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The phpcs.xml.dist should be excluding all failing rules. The latest release of the the rulesets in https://www.drupal.org/proejct/coder have three failing rules - we should add them to be excluded because core fails them both.
Also we have rules about .info and vendor directories that are no longer needed.
As this is test infra this can go in the an upcoming patch release and does not have to wait for a minor.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2623680.4.patch | 2.95 KB | alexpott |
#3 | 2623680.3.patch | 2.02 KB | alexpott |
#2 | 2623680.2.patch | 1.99 KB | alexpott |
Comments
Comment #2
alexpottComment #3
alexpottMore to do... #2572641: Fix 'Drupal.Commenting.DocCommentStar' coding standard and #2572649: Fix 'Drupal.Commenting.HookComment' coding standard have been fixed... so let's remove those the rules from the excluded... oh actually both of them need re-doing, lol. #2572641: Fix 'Drupal.Commenting.DocCommentStar' coding standard has a regression in core/lib/Drupal/Core/Render/Element/FormElement.php and #2572649: Fix 'Drupal.Commenting.HookComment' coding standard seems like the sniff was improved or was just done wrong.
Comment #4
alexpottWell let's fix the tiny regression in #2572641: Fix 'Drupal.Commenting.DocCommentStar' coding standard since it is simple and then we have less to do...
Comment #6
pfrenssenTested it and it works great.
Nice catch!
Yep, that's no longer there.
When I first ran the test it couldn't find the Drupal ruleset, so I changed this line in phpcs.xml.dist:
For the moment this doesn't matter since the Coder module is not installed in core yet. It's something we might have to address in the future.
After changing this I could run the test without problems:
No violations reported.
Comment #7
catchCommitted/pushed to 8.1.x and cherry-picked to 8.0.x. Thanks!