3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Exclude Sniffs that prevent blank lines after comments.

This is being discussed upstream in https://www.drupal.org/project/coder/issues/2159253
and https://www.drupal.org/project/coding_standards/issues/2464123.

We can remove these exclusions if/when they are removed upstream.
This commit is contained in:
Michael Stenta 2021-03-11 11:07:50 -05:00
parent 2066e7202b
commit 3eb0a6e892

View file

@ -45,8 +45,13 @@ RUN { \
echo ' <rule ref="Drupal">'; \
echo ' <exclude name="Drupal.InfoFiles.AutoAddedKeys.Version"/>'; \
echo ' <exclude name="Drupal.Arrays.Array.LongLineDeclaration"/>'; \
# @todo https://www.drupal.org/project/coder/issues/2159253
echo ' <exclude name="Drupal.Commenting.InlineComment.SpacingAfter"/>'; \
echo ' </rule>'; \
echo ' <rule ref="DrupalPractice">'; \
# @todo https://www.drupal.org/project/coder/issues/2159253
echo ' <exclude name="DrupalPractice.Commenting.CommentEmptyLine.SpacingAfter"/>'; \
echo ' </rule>'; \
echo ' <rule ref="DrupalPractice"/>'; \
echo ' <rule ref="Internal.Tokenizer.Exception"><severity>0</severity></rule>'; \
echo '</ruleset>'; \
} > /var/farmOS/phpcs.xml \