chore(deps-dev): bump wp-coding-standards/wpcs from 2.3.0 to 3.1.0
Bumps wp-coding-standards/wpcs from 2.3.0 to 3.1.0.
Release notes
Sourced from wp-coding-standards/wpcs's releases.
3.1.0
Added
- WordPress-Core ruleset: now includes the
Universal.PHP.LowercasePHPTagsniff.- WordPress-Extra ruleset: now includes the
Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedenceand theUniversal.CodeAnalysis.NoDoubleNegativesniffs.- The
sanitize_locale_name()function to the list of known "escaping" functions. Props@Chouby- The
sanitize_locale_name()function to the list of known "sanitize & unslash" functions. Props@ChoubyChanged
- The minimum required
PHP_CodeSnifferversion to 3.9.0 (was 3.7.2).- The minimum required
PHPCSUtilsversion to 1.0.10 (was 1.0.8).- The minimum required
PHPCSExtraversion to 1.2.1 (was 1.1.0). Please ensure you runcomposer update wp-coding-standards/wpcs --with-dependenciesto benefit from these updates.- Core ruleset: the spacing after the
usekeyword for closureusestatements will now consistently be checked. Props@westonruterfor reporting.- The default value for
minimum_wp_version, as used by a number of sniffs detecting usage of deprecated WP features, has been updated to6.2.WordPress.NamingConventions.PrefixAllGlobalshas been updated to recognize pluggable functions introduced in WP 6.4 and 6.5.WordPress.NamingConventions.ValidPostTypeSlughas been updated to recognize reserved post types introduced in WP 6.4 and 6.5.WordPress.WP.ClassNameCasehas been updated to recognize classes introduced in WP 6.4 and 6.5.WordPress.WP.DeprecatedClassesnow detects classes deprecated in WordPress up to WP 6.5.WordPress.WP.DeprecatedFunctionsnow detects functions deprecated in WordPress up to WP 6.5.- The
IsUnitTestTraitwill now recognize classes which extend the new WP CoreWP_Font_Face_UnitTestCaseclass as test classes.- The test suite can now run on PHPUnit 4.x - 9.x (was 4.x - 7.x), which should make contributing more straight forward.
- Various housekeeping, includes a contribution from
@rodrigoprimo.Fixed
WordPress.WP.PostsPerPagecould potentially result in anInternal.Exceptionwhen encountering a query string which doesn't include the value forposts_per_pagein the query string. Props@anomiexfor reporting.3.0.1
Added
- In WordPressCS 3.0.0, the functionality of the
WordPress.Security.EscapeOutputsniff was updated to report unescaped message parameters passed to exceptions created inthrowstatements. This specific violation now has a separate error code:ExceptionNotEscaped. This will allow users to ignore or exclude that specific error code. Props@anomiex. The error code(s) for other escaping issues flagged by the sniff remain unchanged.Changed
- Updated the CI workflow to test the example ruleset for issues.
- Funding files and updates in the Readme about funding the project.
Fixed
- Fixed a sniff name in the
phpcs.xml.dist.samplefile (case-sensitive sniff name). Props@dawidurbanski.3.0.0
Important information about this release:
At long last... WordPressCS 3.0.0 is here.
This is an important release which makes significant changes to improve the accuracy, performance, stability and maintainability of all sniffs, as well as making WordPressCS much better at handling modern PHP.
... (truncated)
Changelog
Sourced from wp-coding-standards/wpcs's changelog.
[3.1.0] - 2024-03-25
Added
- WordPress-Core ruleset: now includes the
Universal.PHP.LowercasePHPTagsniff.- WordPress-Extra ruleset: now includes the
Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedenceand theUniversal.CodeAnalysis.NoDoubleNegativesniffs.- The
sanitize_locale_name()function to the list of known "escaping" functions. Props [@Chouby]- The
sanitize_locale_name()function to the list of known "sanitize & unslash" functions. Props [@Chouby]Changed
- The minimum required
PHP_CodeSnifferversion to 3.9.0 (was 3.7.2).- The minimum required
PHPCSUtilsversion to 1.0.10 (was 1.0.8).- The minimum required
PHPCSExtraversion to 1.2.1 (was 1.1.0). Please ensure you runcomposer update wp-coding-standards/wpcs --with-dependenciesto benefit from these updates.- Core ruleset: the spacing after the
usekeyword for closureusestatements will now consistently be checked. Props [@westonruter] for reporting.- The default value for
minimum_wp_version, as used by a number of sniffs detecting usage of deprecated WP features, has been updated to6.2.WordPress.NamingConventions.PrefixAllGlobalshas been updated to recognize pluggable functions introduced in WP 6.4 and 6.5.WordPress.NamingConventions.ValidPostTypeSlughas been updated to recognize reserved post types introduced in WP 6.4 and 6.5.WordPress.WP.ClassNameCasehas been updated to recognize classes introduced in WP 6.4 and 6.5.WordPress.WP.DeprecatedClassesnow detects classes deprecated in WordPress up to WP 6.5.WordPress.WP.DeprecatedFunctionsnow detects functions deprecated in WordPress up to WP 6.5.- The
IsUnitTestTraitwill now recognize classes which extend the new WP CoreWP_Font_Face_UnitTestCaseclass as test classes.- The test suite can now run on PHPUnit 4.x - 9.x (was 4.x - 7.x), which should make contributing more straight forward.
- Various housekeeping, includes a contribution from [
@rodrigoprimo].Fixed
WordPress.WP.PostsPerPagecould potentially result in anInternal.Exceptionwhen encountering a query string which doesn't include the value forposts_per_pagein the query string. Props [@anomiex] for reporting.[3.0.1] - 2023-09-14
Added
- In WordPressCS 3.0.0, the functionality of the
WordPress.Security.EscapeOutputsniff was updated to report unescaped message parameters passed to exceptions created inthrowstatements. This specific violation now has a separate error code:ExceptionNotEscaped. This will allow users to ignore or exclude that specific error code. Props [@anomiex]. The error code(s) for other escaping issues flagged by the sniff remain unchanged.Changed
- Updated the CI workflow to test the example ruleset for issues.
- Funding files and updates in the Readme about funding the project.
Fixed
- Fixed a sniff name in the
phpcs.xml.dist.samplefile (case-sensitive sniff name). Props [@dawidurbanski].[3.0.0] - 2023-08-21
Important information about this release:
... (truncated)
Commits
9333efcMerge pull request #2439 from WordPress/developcf2cffeMerge pull request #2438 from WordPress/feature/changelog-release-3.1.087ab204Changelog for the release of WordPressCS 3.1.0fe959deMerge pull request #2437 from WordPress/feature/composer-update-phpcsutils0119a3fMerge pull request #2436 from WordPress/feature/update-list-based-sniffs-wp-6.5d4afabaComposer: raise the minimum supported PHPCSUtils version to 1.0.104e384e2Update theminimum_wp_versionto WP 6.216d40a0WP/DeprecatedFunctions: update the functions list based on WP 6.5-RC38b1ef9bWP/DeprecatedClasses: update the class list based on WP 6.5-RC35e988d8WP/ClassNameCase: update the class lists based on WP 6.5-RC3- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
@dependabot recreate
Looks like wp-coding-standards/wpcs is up-to-date now, so this is no longer needed.