Exclude PHP CodeSniffer rule: Drupal.InfoFiles.AutoAddedKeys.Version CodeSniffer

We intentionally include the version in farm.info.yml, and
replace it ourselves during packaging via GitHub Actions.
This commit is contained in:
Michael Stenta 2020-08-19 15:28:19 -04:00
parent 365cea8f93
commit 06d0b9628d
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ RUN { \
echo ' <file>.</file>'; \
echo ' <arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,yml"/>'; \
echo ' <config name="drupal_core_version" value="9"/>'; \
echo ' <rule ref="Drupal" />'; \
echo ' <rule ref="Drupal">'; \
echo ' <exclude name="Drupal.InfoFiles.AutoAddedKeys.Version"/>'; \
echo ' </rule>'; \
echo ' <rule ref="DrupalPractice"/>'; \
echo '</ruleset>'; \
} > /var/farmOS/phpcs.xml \