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

chore(deps-dev): Bump automattic/vipwpcs from 2.3.4 to 3.0.0 #4844

Merged
merged 4 commits into from
Sep 20, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 5, 2023

Bumps automattic/vipwpcs from 2.3.4 to 3.0.0.

Release notes

Sourced from automattic/vipwpcs's releases.

3.0.0

Props: @​GaryJones, @​jrfnl

This release requires WordPressCS 3.0.0. It is not compatible with WordPressCS 2.x. Users should read the WordPressCS 3.0 upgrade guide for end-users.

Increases requirements for PHPCS from 3.7.1 to 3.7.2.

The tagged releases branch is now main instead of master.

Added

  • #777: 3.0: start using PHPCSUtils.
  • #779: 3.0: support WordPressCS 3.0.

Changed

  • #780: Performance/WPQueryParams: defer to the parent sniff.
    • Two error codes changed:
      • WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn is now WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in.
      • WordPressVIPMinimum.Performance.WPQueryParams.SuppressFiltersTrue is now WordPressVIPMinimum.Performance.WPQueryParams.SuppressFilters_suppress_filters.

Removed

  • #774: Performance/BatcacheWhitelistedParams: remove the sniff.
  • #775: Compatibility/Zoninator: remove the sniff.
  • #776: Variables/VariableAnalysis: remove the sniff.

Fixed

  • #784: Performance/WPQueryParams: prevent false positives for 'exclude' with get_users().
  • #788: Security/Mustache: prevent false positives on block editor templates.

Maintenance

  • #778: CS: improve use statements.
  • #781: Performance/NoPaging: add extra tests.
  • #782: GH Actions: minor tweaks to the composer options used.
  • #783: Hooks/AlwaysReturnInFilter: remove redundant condition.
  • #785: Docs: remove redundant @package tags.
  • #786: Add PHPStan to QA checks.
  • #787: GH Actions: tweak the way the PHPCS/WPCS versions are set.
  • #789: Updates related to branch rename from master to main.
  • #790: PHPUnit: Use 7.5 schema.
  • #791: Docs: Update CONTRIBUTING.md.
Changelog

Sourced from automattic/vipwpcs's changelog.

[3.0.0] - 2023-09-05

Props: @​GaryJones, @​jrfnl

This release requires WordPressCS 3.0.0. It is not compatible with WordPressCS 2.x. Users should read the WordPressCS 3.0 upgrade guide for end-users.

Increases requirements for PHPCS from 3.7.1 to 3.7.2.

The tagged releases branch is now main instead of master.

Added

  • #777: 3.0: start using PHPCSUtils.
  • #779: 3.0: support WordPressCS 3.0.

Changed

  • #780: Performance/WPQueryParams: defer to the parent sniff.
    • Two error codes changed:
      • WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn is now WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in.
      • WordPressVIPMinimum.Performance.WPQueryParams.SuppressFiltersTrue is now WordPressVIPMinimum.Performance.WPQueryParams.SuppressFilters_suppress_filters.

Removed

  • #774: Performance/BatcacheWhitelistedParams: remove the sniff.
  • #775: Compatibility/Zoninator: remove the sniff.
  • #776: Variables/VariableAnalysis: remove the sniff.

Fixed

  • #784: Performance/WPQueryParams: prevent false positives for 'exclude' with get_users().
  • #788: Security/Mustache: prevent false positives on block editor templates.

Maintenance

  • #778: CS: improve use statements.
  • #781: Performance/NoPaging: add extra tests.
  • #782: GH Actions: minor tweaks to the composer options used.
  • #783: Hooks/AlwaysReturnInFilter: remove redundant condition.
  • #785: Docs: remove redundant @package tags.
  • #786: Add PHPStan to QA checks.
  • #787: GH Actions: tweak the way the PHPCS/WPCS versions are set.
  • #789: Updates related to branch rename from master to main.
  • #790: PHPUnit: Use 7.5 schema.
  • #791: Docs: Update CONTRIBUTING.md.
Commits
  • 1b8960e Merge pull request #793 from Automattic/release/3.0.0
  • fad2290 Merge pull request #792 from Automattic/release/3.0.0-changelog
  • 1080d56 3.0.0: Add changelog
  • 63e76ec Merge pull request #790 from Automattic/fix/phpunit-schema
  • 3e6a27b Merge pull request #791 from Automattic/fix/contributing-doc
  • 9146d1c Docs: Update CONTRIBUTING.md
  • ca302d8 Merge pull request #789 from Automattic/3.0/fix/666-branch-rename
  • 60988b1 PHPUnit: Use 7.5 schema
  • 2758288 Updates related to branch rename from master to main
  • 64aa799 Merge pull request #788 from Automattic/fix/541-mustache-sub-issue-gb-vs-curlies
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from a team as a code owner September 5, 2023 19:47
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Sep 5, 2023
@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Merging #4844 (6685e3e) into develop (d9ad046) will decrease coverage by 0.01%.
The diff coverage is 30.15%.

@@              Coverage Diff              @@
##             develop    #4844      +/-   ##
=============================================
- Coverage      29.11%   29.10%   -0.01%     
  Complexity      4705     4705              
=============================================
  Files            276      276              
  Lines          20751    20749       -2     
=============================================
- Hits            6042     6040       -2     
  Misses         14709    14709              
Files Changed Coverage Δ
000-debug/debug-mode.php 16.66% <0.00%> (ø)
000-debug/not-proxied-flag.php 3.12% <ø> (ø)
001-core.php 15.55% <0.00%> (ø)
001-core/options-api.php 56.25% <0.00%> (ø)
a8c-files.php 17.86% <0.00%> (ø)
admin-notice/admin-notice.php 0.00% <0.00%> (ø)
alloptions-limit.php 18.18% <ø> (ø)
async-publish-actions.php 27.65% <0.00%> (ø)
cache/examples/segmentation-beta/beta.php 0.00% <0.00%> (ø)
codebase-manager/codebase-manager.php 0.00% <0.00%> (ø)
... and 105 more

@sjinks sjinks self-assigned this Sep 7, 2023
@sjinks sjinks force-pushed the dependabot/composer/automattic/vipwpcs-3.0.0 branch from 2765d47 to 935eb19 Compare September 7, 2023 06:43
Copy link
Contributor

@GaryJones GaryJones left a comment

Choose a reason for hiding this comment

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

One potential blocker to review, the rest would be nice to have addressed at some point.

001-core/options-api.php Outdated Show resolved Hide resolved
@@ -1,5 +1,7 @@
<?php

// phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed
Copy link
Contributor

Choose a reason for hiding this comment

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

Could the couple of requires and the single function be moved out of the file to maintain consistency with the expectation around classes-only being in a class- file?

Copy link
Contributor

Choose a reason for hiding this comment

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

Definitely would be good to get around to removing the suppressions where it makes sense, but doesn't really have to be in this PR that updates the tooling to an important milestone. Can handle it separately in another PR.

@@ -1,5 +1,7 @@
<?php

// phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if this file is copied in from elsewhere, but separating it into a class-only file and a functions file may be the better approach here IMO.

</rule>

<rule ref="Universal.Files.SeparateFunctionsFromOO.Mixed">
<exclude-pattern>/tests/*</exclude-pattern>
Copy link
Contributor

Choose a reason for hiding this comment

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

How have we managed to get test classes and functions mixed in the same file? Could any fixtures be moved out to their own file?

search/includes/classes/class-search.php Outdated Show resolved Hide resolved
vip-helpers/vip-deprecated.php Show resolved Hide resolved
vip-helpers/vip-media.php Show resolved Hide resolved
@sjinks sjinks force-pushed the dependabot/composer/automattic/vipwpcs-3.0.0 branch from 3cad86f to c45a73e Compare September 18, 2023 15:06
dependabot bot and others added 4 commits September 20, 2023 17:38
Bumps [automattic/vipwpcs](https://github.com/Automattic/VIP-Coding-Standards) from 2.3.4 to 3.0.0.
- [Release notes](https://github.com/Automattic/VIP-Coding-Standards/releases)
- [Changelog](https://github.com/Automattic/VIP-Coding-Standards/blob/develop/CHANGELOG.md)
- [Commits](Automattic/VIP-Coding-Standards@2.3.4...3.0.0)

---
updated-dependencies:
- dependency-name: automattic/vipwpcs
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@sjinks sjinks force-pushed the dependabot/composer/automattic/vipwpcs-3.0.0 branch from 6685e3e to f32b951 Compare September 20, 2023 14:39
@sjinks sjinks merged commit 9e4e16e into develop Sep 20, 2023
@sjinks sjinks deleted the dependabot/composer/automattic/vipwpcs-3.0.0 branch September 20, 2023 14:57
andrea-sdl pushed a commit that referenced this pull request Oct 19, 2023
* chore(deps-dev): Bump automattic/vipwpcs from 2.3.4 to 3.0.0

Bumps [automattic/vipwpcs](https://github.com/Automattic/VIP-Coding-Standards) from 2.3.4 to 3.0.0.
- [Release notes](https://github.com/Automattic/VIP-Coding-Standards/releases)
- [Changelog](https://github.com/Automattic/VIP-Coding-Standards/blob/develop/CHANGELOG.md)
- [Commits](Automattic/VIP-Coding-Standards@2.3.4...3.0.0)

---
updated-dependencies:
- dependency-name: automattic/vipwpcs
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* style: fix phpcs issues

* fix: address code review comments

* fix: new phpcs issues

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Volodymyr Kolesnykov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file php Pull requests that update Php code [Status] Deployed to production
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants