forked from Automattic/_s
-
Notifications
You must be signed in to change notification settings - Fork 0
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 Automattic#461 from roots/revert-455-log1x-phpcs
Revert "Use inline phpcs rules instead of phpcs.xml"
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
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,23 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Roots"> | ||
<description>Roots Coding Standards</description> | ||
|
||
<!-- Scan all files in directory --> | ||
<file>.</file> | ||
|
||
<!-- Scan only PHP files --> | ||
<arg name="extensions" value="php"/> | ||
|
||
<!-- Ignore WordPress and Composer dependencies --> | ||
<exclude-pattern>web/wp</exclude-pattern> | ||
<exclude-pattern>vendor/</exclude-pattern> | ||
|
||
<!-- Show colors in console --> | ||
<arg value="-colors"/> | ||
|
||
<!-- Show sniff codes in all reports --> | ||
<arg value="ns"/> | ||
|
||
<!-- Use PSR-2 as a base --> | ||
<rule ref="PSR2"/> | ||
</ruleset> |