Skip to content

Commit

Permalink
Merge pull request #81 from humanmade/php-compatibility
Browse files Browse the repository at this point in the history
Add PHPCompatibilityWP Standard.
  • Loading branch information
mikeselander authored Jan 8, 2020
2 parents db6a7a3 + 3945f6f commit d5aaa2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Added PHPCS Rule to Detect Consecutive Newlines #168
- Enforce semicolons in JS #169
- Added `WordPress.Security.EscapeOutput` PHPCS rule #166
- Added PHPCompatibilityWP standard to PHPCS #81

### Updated
- Bumped `stylelint-config-wordpress` package to v15 from v13 #165
Expand Down
4 changes: 4 additions & 0 deletions HM/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

<autoload>bootstrap.php</autoload>

<!-- Check for PHP cross-version compatibility. -->
<config name="testVersion" value="7.1-" />
<rule ref="PHPCompatibilityWP" />

<rule ref="WordPress-Core">
<!-- Allow with or without semicolons. -->
<exclude name="Squiz.PHP.EmbeddedPhp.NoSemicolon" />
Expand Down

0 comments on commit d5aaa2a

Please sign in to comment.