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.
Hi everyone,
Since the commit of this morning, PHPCS doesn't apply filter `--extension`.
Indeed, it checks any file, (Yml, .module, .info ...etc).
Moreover, I got new issues like "Data types in @var tags need to be fully namespaced". Why fully namespace is now required ? A use statement is there for that.
Regards,
Comments
Comment #2
klausiThe --extension option merges with what is configured in Drupal's ruleset.xml. If you want to ignore certain files then you need to use the --ignore option:
Fully qualified data types:
From https://www.drupal.org/docs/develop/coding-standards/api-documentation-a...
Comment #4
Shiraz DindarBut is this desirable behaviour? If this is the way it's going to be, then the documentation here needs to be updated: https://www.drupal.org/node/1587138
Totally threw me for a loop.
Comment #5
Shiraz DindarAlso, just noting that the ruleset commit is here: http://cgit.drupalcode.org/coder/commit/?id=3342de51a9c35179c6c8a0e35b39...
Comment #6
klausiright, opened #2862837: Update docs page for file extensions and how to exclude certain extensions.