-
-
Notifications
You must be signed in to change notification settings - Fork 192
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 #438 from jhedstrom/338-coding-standards
Enforce coding standards
- Loading branch information
Showing
65 changed files
with
2,113 additions
and
1,840 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Install hooks for the behat_test module. | ||
*/ | ||
|
||
/** | ||
* Implements hook_install(). | ||
*/ | ||
|
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Intentionally empty file. | ||
*/ |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* behat_test.features.inc | ||
|
1 change: 1 addition & 0 deletions
1
fixtures/drupal7/modules/behat_test/behat_test.features.taxonomy.inc
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* behat_test.features.taxonomy.inc | ||
|
1 change: 1 addition & 0 deletions
1
fixtures/drupal7/modules/behat_test/behat_test.features.user_permission.inc
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* behat_test.features.user_permission.inc | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Code for the Behat test feature. | ||
|
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
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
5 changes: 0 additions & 5 deletions
5
fixtures/drupal8/modules/behat_test/src/Plugin/Field/FieldType/AddressFieldItem.php
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
5 changes: 0 additions & 5 deletions
5
fixtures/drupal8/modules/behat_test/src/Plugin/Field/FieldWidget/AddressFieldWidget.php
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,19 @@ | ||
<?xml version="1.0"?> | ||
<!-- PHP_CodeSniffer standard --> | ||
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml --> | ||
<ruleset name="drupal/drupal-extension-fixtures"> | ||
<description>Drupal Behat Extension coding standards for packaged Drupal code</description> | ||
|
||
<file>./fixtures</file> | ||
|
||
<exclude-pattern>^/doc/*</exclude-pattern> | ||
<exclude-pattern>^/drupal/*</exclude-pattern> | ||
<exclude-pattern>^/drush/*</exclude-pattern> | ||
<exclude-pattern>^/reports/*</exclude-pattern> | ||
<exclude-pattern>^/spec/*</exclude-pattern> | ||
<exclude-pattern>^/vendor/*</exclude-pattern> | ||
<exclude-pattern>^/README.md</exclude-pattern> | ||
|
||
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal"></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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0"?> | ||
<!-- PHP_CodeSniffer standard --> | ||
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml --> | ||
<ruleset name="drupal/drupal-extension"> | ||
<description>Drupal Behat Extension coding standards</description> | ||
|
||
<file>./src</file> | ||
|
||
<exclude-pattern>^/doc/*</exclude-pattern> | ||
<exclude-pattern>^/drupal/*</exclude-pattern> | ||
<exclude-pattern>^/drush/*</exclude-pattern> | ||
<exclude-pattern>^/fixtures/*</exclude-pattern> | ||
<exclude-pattern>^/reports/*</exclude-pattern> | ||
<exclude-pattern>^/spec/*</exclude-pattern> | ||
<exclude-pattern>^/vendor/*</exclude-pattern> | ||
<exclude-pattern>^/README.md</exclude-pattern> | ||
|
||
<rule ref="PSR2"> | ||
<!-- @todo Fix long line length issues --> | ||
<exclude name="Generic.Files.LineLength.TooLong" /> | ||
</rule> | ||
|
||
</ruleset> |
Oops, something went wrong.