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

WordPress ruleset: account for more polyfills and improve documentation #648

Merged
merged 1 commit into from Jun 9, 2018

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 31, 2018

Changes:

  • Added excludes for json_encode(), json_decode() and hash_hmac().
  • Added excludes for the SPL autoload polyfills as introduced in WP 4.6.0.
  • Added excludes for the new polyfills is_iterable() and is_countable() as introduced in WP 4.9.6.
  • Reorganized the excludes and improved the documentation:
    • Group the excludes by the file which contains them.
    • Order the excludes to mirror the order in which they appear in the file for easier verification & future maintenance.

N.B.: some of the excluded codes relate to functions we currently don't detect yet. There is an upcoming PR to add detection of those, which will be pulled once #640 has been merged to prevent conflicts.

Changes:
* Added `exclude`s for `json_encode()`, `json_decode()` and `hash_hmac()`.
* Added `exclude`s for the SPL autoload polyfills as introduced in WP 4.6.0.
* Added `exclude`s for the new polyfills `is_iterable()` and `is_countable()` as introduced in WP 4.9.6.
* Reorganized the excludes and improved the documentation:
    - Group the excludes by the file which contains them.
    - Order the excludes to mirror the order in which they appear in the file for easier verification & future maintenance.
@jrfnl jrfnl added this to the 8.2.0 milestone May 31, 2018
@jrfnl jrfnl requested a review from wimg May 31, 2018 02:30
@valendesigns
Copy link

@jrfnl Is there an ETA on this landing? We're about to re-audit all the themes/plugins with Tide tomorrow and this seems very relevant to getting valid results.

@jrfnl
Copy link
Member Author

jrfnl commented Jun 8, 2018

@wimg Are you ok with me merging this ? The Travis failure is unrelated to this change and PR #642 is open to fix that already, so that should not hold this PR back.

@jrfnl jrfnl added PR: high priority PR: quick merge PR only contains relatively simple changes labels Jun 8, 2018
@wimg wimg merged commit 4013dfc into master Jun 9, 2018
@jrfnl jrfnl deleted the feature/more-backfills-wp branch June 9, 2018 12:15
@jrfnl
Copy link
Member Author

jrfnl commented Jun 9, 2018

Merci!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants