-
Notifications
You must be signed in to change notification settings - Fork 4
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 #113 from lemberg/feature/php-codesniffer
Add & configure PHP code sniffer
- Loading branch information
Showing
8 changed files
with
201 additions
and
19 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,28 @@ | ||
<?xml version="1.0"?> | ||
<!-- See http://pear.php.net/manual/en/package.php.php-codesniffer.annotated-ruleset.php --> | ||
<ruleset name="Drupal"> | ||
<description>Drupal coding standard</description> | ||
<!-- All PHP code files must be UTF-8 encoded and we treat them as such. --> | ||
<arg name="encoding" value="utf-8"/> | ||
<!-- Look for *.php files only. --> | ||
<arg name="extensions" value="php"/> | ||
<!-- Use colors in output. --> | ||
<arg name="colors"/> | ||
|
||
<!-- Scan directories with PHP code only. --> | ||
<file>./src/</file> | ||
<file>./tests/</file> | ||
|
||
<!-- Include the whole Drupal standard --> | ||
<rule ref="Drupal"> | ||
<!--Ignore "Missing short description in doc comment". --> | ||
<exclude name="Drupal.Commenting.DocComment.MissingShort"/> | ||
<!--Ignore "Doc comment short description must be on a single line, further text should be a separate paragraph". --> | ||
<exclude name="Drupal.Commenting.DocComment.ShortSingleLine"/> | ||
<!--Ignore "Missing parameter comment". --> | ||
<exclude name="Drupal.Commenting.FunctionComment.MissingParamComment"/> | ||
<!--Ignore "Description for the @return value is missing". --> | ||
<exclude name="Drupal.Commenting.FunctionComment.MissingReturnComment"/> | ||
</rule> | ||
|
||
</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
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