-
-
Notifications
You must be signed in to change notification settings - Fork 487
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 #1392 from WordPress-Coding-Standards/develop
Release version 1.0.0
- Loading branch information
Showing
270 changed files
with
9,748 additions
and
4,812 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 |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
vendor | ||
composer.lock | ||
phpunit.xml | ||
phpcs.xml | ||
.phpcs.xml |
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,55 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="WordPress Coding Standards"> | ||
<description>The Coding standard for the WordPress Coding Standards itself.</description> | ||
|
||
<file>.</file> | ||
|
||
<arg value="sp"/> | ||
<arg name="extensions" value="php"/> | ||
|
||
<!-- Exclude the code in the PHPCS 2.x test files copied in from PHPCS. --> | ||
<exclude-pattern>/Test/AllTests.php</exclude-pattern> | ||
<exclude-pattern>/Test/Standards/*.php</exclude-pattern> | ||
<exclude-pattern>/bin/class-ruleset-test.php</exclude-pattern> | ||
|
||
<!-- Exclude Composer vendor directory. --> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
|
||
<rule ref="WordPress-Extra"> | ||
<exclude name="WordPress.Files.FileName"/> | ||
<exclude name="WordPress.NamingConventions.ValidVariableName"/> | ||
<exclude name="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition"/> | ||
</rule> | ||
|
||
<rule ref="WordPress-Docs"/> | ||
|
||
<!-- Enforce PSR1 compatible namespaces. --> | ||
<rule ref="PSR1.Classes.ClassDeclaration"/> | ||
|
||
<rule ref="WordPress.Arrays.MultipleStatementAlignment"> | ||
<properties> | ||
<property name="alignMultilineItems" value="!=100"/> | ||
</properties> | ||
</rule> | ||
|
||
<rule ref="PSR2.Methods.FunctionClosingBrace"/> | ||
|
||
<!-- Check code for cross-version PHP compatibility. --> | ||
<config name="testVersion" value="5.3-"/> | ||
<rule ref="PHPCompatibility"> | ||
<!-- Exclude PHP constants back-filled by PHPCS. --> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_finallyFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_yieldFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_ellipsisFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_powFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_pow_equalFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_spaceshipFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_coalesceFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_coalesce_equalFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_yield_fromFound"/> | ||
|
||
<!-- Unclear how, but appears to be back-filled anyhow, could be that PHP did so before the token was in use. --> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_traitFound"/> | ||
</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
Oops, something went wrong.