Skip to content

Commit

Permalink
simplify example standards and extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Oct 11, 2021
1 parent 9f371c1 commit 4b96a70
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions example/phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@

<description>An example PHP CodeSniffer configuration.</description>

<!-- Set extensions to scan. Uncomment for the respective standard. -->
<!-- @see https://git.drupalcode.org/project/coder/blob/8.3.6/coder_sniffer/Drupal/ruleset.xml#L8 -->
<!-- AcquiaDrupalStrict and AcquiaDrupalTransitional -->
<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/>
<!-- AcquiaPHP -->
<!-- <arg name="extensions" value="php,inc,test,css,txt,md,yml"/> -->
<!-- Uncomment your chosen standard and the filename extensions corresponding to it. -->
<!-- @see https://github.com/acquia/coding-standards-php/issues/18 for background on filename extensions. -->
<rule ref="AcquiaDrupalStrict"/><arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/>
<!-- <rule ref="AcquiaDrupalTransitional"/><arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/> -->
<!-- <rule ref="AcquiaPHP"/><arg name="extensions" value="php,inc,test,css,txt,md,yml"/> -->

<arg name="colors"/>
<arg name="cache" value=".phpcs-cache"/>
Expand All @@ -23,9 +22,4 @@
<!-- @see https://github.com/squizlabs/PHP_CodeSniffer/issues/981 -->
<exclude-pattern>vendor/*</exclude-pattern>

<!-- If you change the standard, be sure to also update the extensions to scan -->
<rule ref="AcquiaDrupalStrict"/>
<!-- <rule ref="AcquiaDrupalTransitional"/> -->
<!-- <rule ref="AcquiaPHP"/> -->

</ruleset>

0 comments on commit 4b96a70

Please sign in to comment.