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

Composer/PHPCS: update to YoastCS 3.0.0 #355

Merged
merged 2 commits into from
Dec 16, 2023

Commits on Dec 16, 2023

  1. Composer/PHPCS: update to YoastCS 3.0.0

    YoastCS 3.0.0 has been released and is based on WordPressCS 3.0.0.
    
    This commit makes the necessary updates for that:
    * Composer: update the requirements.
    * PHPCS ruleset:
        - Update a few sniff/property names for new names in WordPressCS 3.0.
        - Enforce strict PSR-4 for the tests.
        - Add configuration for the new `WordPress.WP.Capabilities` sniff.
        - Remove a few exclusions which are no longer needed.
        - Add a few selective exclusions for specific situations.
    * GHA CS workflow: run the CS check on the latest PHP version.
            No need to run on PHP 7.4 any more as the deprecations previously encountered were all fixed.
    
    Refs:
    * https://github.com/Yoast/yoastcs/releases/tag/3.0.0
    * https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.0.0
    jrfnl committed Dec 16, 2023
    Configuration menu
    Copy the full SHA
    b15fa52 View commit details
    Browse the repository at this point in the history
  2. GH Action/cs: use the threshold/branch report

    ... instead of a full scan.
    
    As there are some YoastCS 3.0 issues which still need to be solved by the teams, this changes the CS workflow to use the threshold report instead of expecting a 100% clean code base.
    jrfnl committed Dec 16, 2023
    Configuration menu
    Copy the full SHA
    1186cf7 View commit details
    Browse the repository at this point in the history