-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from palantirnet/phpcs-config-file
Move phpcs configuration from the-build into a phpcs.xml file
- Loading branch information
Showing
5 changed files
with
57 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!-- | ||
@see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml#the-annotated-sample-file | ||
@see https://www.drupal.org/docs/develop/standards | ||
@see https://github.com/squizlabs/PHP_CodeSniffer | ||
@see https://www.drupal.org/project/coder | ||
@see vendor/drupal/coder/coder_sniffer/ | ||
--> | ||
|
||
<ruleset name="@projectname@"> | ||
<description>PHP_CodeSniffer configuration.</description> | ||
|
||
<!-- Warnings and errors should throw an exception. --> | ||
<config name="ignore_warnings_on_exit" value="0" /> | ||
<config name="ignore_errors_on_exit" value="0" /> | ||
|
||
<!-- Set extensions to scan. --> | ||
<arg name="extensions" value="php,module,inc,install,test,profile,theme,info,yml,css,js"/> | ||
|
||
<!-- Use colors in output. --> | ||
<arg name="colors"/> | ||
|
||
<!-- Show progress. --> | ||
<arg value="p"/> | ||
|
||
<!-- Include existing standards. --> | ||
<rule ref="Drupal"/> | ||
<rule ref="DrupalPractice"/> | ||
|
||
<!-- Directories to scan. --> | ||
<file>docroot/modules/custom</file> | ||
<file>docroot/themes/custom</file> | ||
|
||
<exclude-pattern>*/behat</exclude-pattern> | ||
<exclude-pattern>*/node_modules</exclude-pattern> | ||
<exclude-pattern>*/vendor</exclude-pattern> | ||
|
||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters