-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define the PHP coding standard checks
- Loading branch information
1 parent
e5fadfd
commit 18d58a8
Showing
1 changed file
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="WordPress coding standards"> | ||
<config name="ignore_warnings_on_exit" value="1" /><!-- Ignore warnings for now. --> | ||
|
||
<file>.</file><!-- Lint all PHP files by default. --> | ||
|
||
<arg name="basepath" value="." /><!-- Show file paths relative to the project root. --> | ||
<arg name="extensions" value="php" /> | ||
<arg name="colors" /> | ||
<arg value="s" /><!-- Show sniff codes in all reports. --> | ||
|
||
<!-- Includes WordPress-Core, WordPress-Docs and WordPress-Extra rulesets. --> | ||
<rule ref="WordPress"> | ||
<type>warning</type><!-- TODO Remove this after fixing all warnings. --> | ||
</rule> | ||
|
||
<!-- Include WP VIP coding standard checks --> | ||
<rule ref="WordPress-VIP-Go" /> | ||
<rule ref="WordPressVIPMinimum" /> | ||
|
||
<exclude-pattern>/node_modules/</exclude-pattern> | ||
<exclude-pattern>/vendor/</exclude-pattern> | ||
<exclude-pattern>/build/</exclude-pattern> | ||
</ruleset> |