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:
parent
365cea8f93
commit
06d0b9628d
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue