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.
Problem/Motivation
If you run phpcs with the "Drupal" rules provided by coder, there is an endless loop in includes/base.inc due to missing @endcode
In addition, drupal/coder requires @endcode to be on a different line, although arguably this latter issue is a bug in drupal/coder
Steps to reproduce
Can be reproduced in drupalci https://dispatcher.drupalci.org/job/drupal_d7/229934/console or manually via phpcs -v
(with a phpcs.xml file that enables the "Drupal" rule).
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#3 | views-n3315509-3.patch | 2.31 KB | DamienMcKenna |
| |||
#3 | views-n3315509-3.interdiff.txt | 1.86 KB | DamienMcKenna |
#2 | 3315509-endcode-newline.patch | 1.72 KB | mfb |
| |||
#2 | 3315509.patch | 413 bytes | mfb |
|
Comments
Comment #2
mfbComment #3
DamienMcKennaThanks for putting this together.
This version fixes a few other occurrences of @code / @endcode.
Comment #4
mfbLGTM - I ran phpcs to verify it completes
Comment #5
DamienMcKennaThanks for bringing this up and for the patch. Committed.
Comment #7
drumm(Updating to resolve Drupal.org issue indexing issue, please disregard.)