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

PHPCS/Composer: update PHPCS related dependencies #5

Merged
merged 1 commit into from
Dec 5, 2019
Merged

PHPCS/Composer: update PHPCS related dependencies #5

merged 1 commit into from
Dec 5, 2019

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Dec 5, 2019

  • Switches the repo over to use PHPCompatibilityWP rather than PHPCompatibility.
    As this repo and ruleset is for a WordPress project, using the PHPCompatibilityWP ruleset is the better choice to prevent false positives for PHP functions and constants which are back-filled by WP.
  • Switches the dependency over to use the repo in the PHPCompatibility organisation rather than the one in wimg's personal account.
  • Use the latest version of PHPCompatibility.
    You were missing out on a lot of new checks, including the checks to make sure your code is compatible with PHP 7.4.
  • Minor ruleset tweaks to allow the tests to also be checked for PHPCompatibility.
  • Use the latest version of the DealerDirect Composer PHPCS plugin.
    Composer treats minors < 1.0 as majors, so you need to explicitly update.
  • Use the latest version of WPCS.
    Includes a few minor function call layout updates in the tests to comply.

Ref:

* Switches the repo over to use `PHPCompatibilityWP` rather than `PHPCompatibility`.
    As this repo and ruleset is for a WordPress project, using the `PHPCompatibilityWP` ruleset is the better choice to prevent false positives for PHP functions and constants which are back-filled by WP.
* Switches the dependency over to use the repo in the `PHPCompatibility` organisation rather than the one in `wimg`'s personal account.
* Use the latest version of PHPCompatibility.
    You were missing out on a lot of new checks, including the checks to make sure your code is compatible with PHP 7.4.
* Minor ruleset tweaks to allow the tests to also be checked for PHPCompatibility.
* Use the latest version of the DealerDirect Composer PHPCS plugin.
    Composer treats minors < 1.0 as majors, so you need to explicitly update.
* Use the latest version of WPCS.
    Includes a few minor function call layout updates in the tests to comply.

Ref:
* https://github.com/PHPCompatibility/PHPCompatibilityWP
* PHPCompatibility/PHPCompatibility#688
* https://github.com/WordPress/WordPress-Coding-Standards/releases/
Copy link
Owner

@stevegrunwell stevegrunwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jrfnl These look great, thank you!!

@stevegrunwell stevegrunwell merged commit 72150a7 into stevegrunwell:develop Dec 5, 2019
@jrfnl jrfnl deleted the feature/update-phpcs-dependencies branch December 5, 2019 22:36
@jrfnl
Copy link
Contributor Author

jrfnl commented Dec 5, 2019

You're welcome.

@macbookandrew macbookandrew mentioned this pull request May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants