Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHPCompatibilityWP Standard. #81

Merged
merged 10 commits into from
Jan 8, 2020
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