-
Notifications
You must be signed in to change notification settings - Fork 5
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 #45 from universityofadelaide/phpcs-xml
Use phpcs.xml file for configuration and simplify commands
- Loading branch information
Showing
3 changed files
with
29 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ruleset name="uoa"> | ||
<description>Default PHP CodeSniffer configuration for UoA projects.</description> | ||
<!-- folders to scan --> | ||
<file>./web/modules/custom</file> | ||
<file>./web/profiles</file> | ||
<file>./web/themes</file> | ||
<exclude-pattern>*md</exclude-pattern> | ||
<!-- additional arguments --> | ||
<arg name="report" value="full"/> | ||
<!-- inherit from coder --> | ||
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal"/> | ||
<!-- Additional detailed sniff configuration --> | ||
<!-- You can determine sniff names by running with -s flag --> | ||
<!-- Example 1 - ignore Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps | ||
<rule ref="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"> | ||
<severity>0</severity> | ||
</rule> | ||
// End example 1 --> | ||
<!-- Example 2 - ignore rule for specific files | ||
<rule ref="Drupal.NamingConventions.ValidVariableName.LowerCamelName"> | ||
<exclude-pattern>OfferNormalizerTrait.php</exclude-pattern> | ||
<exclude-pattern>TimeOfUseValidationTrait.php</exclude-pattern> | ||
</rule> | ||
// End example 2 --> | ||
</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