Skip to content

Commit

Permalink
fix(phpcs config): Remove file extensions in rulesets because users c…
Browse files Browse the repository at this point in the history
…annot overrride them (#3074176 by eiriksm)
  • Loading branch information
eiriksm authored and klausi committed Dec 7, 2019
1 parent 7bc033f commit 69b071b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ The same can be done for a Composer global installation.

Check Drupal coding standards

phpcs --standard=Drupal /file/to/drupal/example_module
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md /file/to/drupal/example_module

Check Drupal best practices

phpcs --standard=DrupalPractice /file/to/drupal/example_module
phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md /file/to/drupal/example_module

Automatically fix coding standards

phpcbf --standard=Drupal /file/to/drupal/example_module
phpcbf --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md /file/to/drupal/example_module


## Store settings in a phpcs.xml.dist file
Expand Down
2 changes: 0 additions & 2 deletions coder_sniffer/Drupal/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<!-- All Drupal code files must be UTF-8 encoded and we treat them as such. -->
<arg name="encoding" value="utf-8"/>

<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/>

<autoload>autoload.php</autoload>

<rule ref="Internal.NoCodeFound">
Expand Down
2 changes: 0 additions & 2 deletions coder_sniffer/DrupalPractice/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<!-- All Drupal code files must be UTF-8 encoded and we treat them as such. -->
<arg name="encoding" value="utf-8"/>

<arg name="extensions" value="php,module,inc,install,test,profile,theme,yml"/>

<autoload>../Drupal/autoload.php</autoload>

<rule ref="Internal.NoCodeFound">
Expand Down

0 comments on commit 69b071b

Please sign in to comment.