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
1 changed files with 6 additions and 1 deletions

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 \