-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PHPCS config and fix errors (#75)
* Autofix WordPress-Core CS * Fix WordPress.PHP.YodaConditions * Fix Squiz.PHP.DisallowMultipleAssignments * Fix WordPress.PHP.StrictInArray * Fix WordPress.NamingConventions.ValidVariableName * Fix critical error: missing break in WXR_Parser_XML::tag_open() * Ignore WordPress.DB.PreparedSQL * Fix capitalizing our ID in register_importer() * Ignore WordPress.Files.FileName for tests * Fix unstable caching configuration in CI * Fix HTML indentation in WP_Import::import_options() * Revert "Ignore WordPress.Files.FileName for tests" This reverts commit 6e6069c. * Add PHPCS configuration file * Add PHPCS to CI * Separate CI job for PHPCS
- Loading branch information
1 parent
7238644
commit 64e575a
Showing
13 changed files
with
747 additions
and
487 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,24 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="WordPressImporterCodingStandards"> | ||
<description>Coding Standards for WordPress Importer.</description> | ||
|
||
<!-- Supported PHP versions --> | ||
<config name="testVersion" value="5.2-"/> | ||
|
||
<file>.</file> | ||
<exclude-pattern>*/vendor/</exclude-pattern> | ||
|
||
<rule ref="WordPress-Core"> | ||
<exclude name="WordPress.PHP.StrictComparisons"/> | ||
<exclude name="WordPress.WP.I18n"/> | ||
</rule> | ||
<rule ref="WordPress.Files.FileName"> | ||
<exclude-pattern>*/phpunit/tests/*\.php$</exclude-pattern> | ||
</rule> | ||
<!-- next up: | ||
<rule ref="WordPress-Extra"> | ||
<exclude name="WordPress.Security.EscapeOutput"/> | ||
</rule> | ||
--> | ||
<rule ref="PHPCompatibilityWP"/> | ||
</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
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
Oops, something went wrong.