Open jfrank-nih opened 10 months ago
PHPCS is currently only scanning a subset of PHP files, with the .php extension. Other files in Drupal also have PHP and should be scanned.
.php
This line from the stock phpcs.xml file should be added to ours:
phpcs.xml
<!-- Set extensions to scan (taken from Coder 8.3.6). --> <!-- @see https://git.drupalcode.org/project/coder/blob/8.3.6/coder_sniffer/Drupal/ruleset.xml#L8 --> <arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/>
That will make .module and .install files get picked up, among other things. File types to be tweaked as needed.
.module
.install
Doing this will also involve having to fix all the PHPCS errors in those files.
Will need to be broken up into individual tickets related to fixing all the PHPCS errors across the different files.
Issue description
PHPCS is currently only scanning a subset of PHP files, with the
.php
extension. Other files in Drupal also have PHP and should be scanned.Issue solution
This line from the stock
phpcs.xml
file should be added to ours:That will make
.module
and.install
files get picked up, among other things. File types to be tweaked as needed.Doing this will also involve having to fix all the PHPCS errors in those files.
See also
2920