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

Update PHPCS formatting in tests #924

Merged
merged 3 commits into from
Jan 10, 2024
Merged

Conversation

westonruter
Copy link
Member

@westonruter westonruter commented Jan 9, 2024

Summary

This cherry-picks changes from #898 to discontinue excluding WordPress-Extra sniffs from applying to tests, and add specific sniff exclusions. By allowing WordPress-Extra to apply, PHPCBF can do automatic formatting. PHPCS errors were fixed in other test files.

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.

@westonruter westonruter added [Type] Enhancement A suggestion for improvement of an existing feature Infrastructure Issues for the overall performance plugin infrastructure labels Jan 9, 2024
@westonruter westonruter added this to the PL Plugin 2.8.0 milestone Jan 9, 2024
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

Thanks @westonruter!

@mukeshpanchal27 mukeshpanchal27 merged commit ecf485d into trunk Jan 10, 2024
25 checks passed
@mukeshpanchal27 mukeshpanchal27 deleted the update/test-phpcs-formatting branch January 10, 2024 04:07
westonruter added a commit that referenced this pull request Jan 12, 2024
…om/WordPress/performance into add/ilo-background-image-optimization

* 'feature/image-loading-optimization' of https://github.com/WordPress/performance: (177 commits)
  Add additional line breaks in phpdoc
  Add line break before dataProvider tag
  Add missing since tag
  Move ilo_can_optimize_response() to optimization.php
  Update ilo_verify_url_metrics_storage_nonce() to return bool
  Re-run composer update with PHP 8.1
  Run composer update
  Fix PHPStan errors in tests
  Remove scheduler from globals since not yet used
  Fix or ignore eslint rules
  Remove modules/images/webp-uploads/fallback.js from ignorePatterns
  Run format-js on JS files
  Cherry pick fixes to JS linting from feature/image-loading-optimization
  Unset REQUEST_URI in tests that call go_to
  Reset SERVER global after each test
  Unrevert 2181d88 for audit-enqueued-assets-test.php
  Prevent sending header during test
  Unrevert 2181d88 for server-timing-tests.php
  Revert test changes moved to #924
  Manually fix remaining phpcs issues
  ...
@felixarntz felixarntz added the no milestone PRs that do not have a defined milestone for release label Jan 16, 2024
@felixarntz felixarntz removed this from the PL Plugin 2.8.0 milestone Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Issues for the overall performance plugin infrastructure no milestone PRs that do not have a defined milestone for release [Type] Enhancement A suggestion for improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants