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
Drupal's coder project has rules for .info.yml files but atm we can't use them because we're not scanning them. Let's fix that.
This will allow us to scan for #2798891: Define project dependencies in core module .info files.
Proposed resolution
Enable scanning of info.yml files.
Remaining tasks
None
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#4 | 2959148-4.patch | 4.7 KB | alexpott |
#2 | 2959148-2.patch | 5.18 KB | alexpott |
Comments
Comment #2
alexpottComment #4
alexpottWhoops forgot to pull before creating the patch.
Comment #5
dawehnerThis makes sense! Could we add more validations, like checking that we have valid yml files?
Comment #6
alexpottWell invalid yml would fail to parse and hopefully that'd produce a sensible error somewhere but there's:
That might offer us something.
Comment #7
alexpottComment #8
dawehnerFair, still it'd be nice in some future to fail early on any yml file.
Comment #9
larowlanCommitted ba1e570 and pushed to 8.6.x.
Comment #12
idebr CreditAttribution: idebr at ezCompany commentedThere is an effort to apply PHPCS for all yml files at #2901653: Add yml files to phpcs.xml.dist