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

Updates WordPress Coding Standards #104

Closed
wants to merge 1 commit into from
Closed

Updates WordPress Coding Standards #104

wants to merge 1 commit into from

Conversation

JPrevost
Copy link
Member

@JPrevost JPrevost commented May 5, 2023

Why are these changes being introduced:

  • release versions of wpcs do not support PHP 8+
  • the 3.0 release of wpcs will support PHP 8+, but has no timeline to an official release other than "when it is ready"
  • as this is just a development dependency, there is minimal risk to updating to the development branch

How does this address that need:

  • updates to the dev-develop branch of wpcs
  • adds a phpcs option in composer to allow calling phpcs as installed by composer without having to install it globally
    • composer phpcs FILENAME will now work

Document any side effects to this change:

  • phpcs.security.xml was updated to ignore a few things that were now returning that weren't before (I think the plan for wpcs is to move a lot to a utlity php library so the changes are likely coming from that in-progress work)
  • I updated one file that was now flagged in the security check as it was an auto-fixable problem rather than flagging it as non-security

Developer

Secrets

  • All new secrets have been added to Pantheon tiers
  • Relevant secrets have been updated in Github Actions
  • All new secrets documented in README

Documentation

  • Project documentation has been updated
  • No documentation changes are needed

Accessibility

  • ANDI or Wave has been run in accordance to
    our guide and
    all issues introduced by these changes have been resolved or opened as new
    issues (link to those issues in the Pull Request details above)

Stakeholder approval

  • Stakeholder approval has been confirmed
  • Stakeholder approval is not needed

Dependencies

YES dependencies are updated

Code Reviewer

  • The commit message is clear and follows our guidelines
    (not just this pull request message)
  • The changes have been verified
  • The documentation has been updated or is unnecessary
  • New dependencies are appropriate or there were no changes

Why are these changes being introduced:

* release versions of wpcs do not support PHP 8+
* the 3.0 release of wpcs will support PHP 8+, but has no timeline to
  an official release other than "when it is ready"
* as this is just a development dependency, there is minimal risk to
  updating to the development branch

How does this address that need:

* updates to the dev-develop branch of wpcs
* adds a `phpcs` option in composer to allow calling `phpcs` as
  installed by composer without having to install it globally
  * `composer phpcs FILENAME` will now work

Document any side effects to this change:

* `phpcs.security.xml` was updated to ignore a few things that were now
  returning that weren't before (I think the plan for wpcs is to move
  a lot to a utlity php library so the changes are likely coming from
  that in-progress work)
* I updated one file that was now flagged in the security check as it
  was an auto-fixable problem rather than flagging it as non-security
@JPrevost JPrevost requested a review from matt-bernhardt May 5, 2023 20:20
matt-bernhardt pushed a commit that referenced this pull request Jul 7, 2023
This is copy pasta from Drupal Composer Managed. While the same changes were made to WordPress Composer Managed (in terms of the `upstream-require` script), the readme was not moved over.
@JPrevost
Copy link
Member Author

Closing in favor of #164

@JPrevost JPrevost closed this Oct 16, 2024
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.

1 participant