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

YoastCS: more modernization rules #366

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Dec 14, 2023

YoastCS rules: enforce the use of *::class

Impact on Yoast packages:

Plugin/Tool Errors/Warnings
PHPUnit Polyfills --
WP Test Utils --
YoastCS --
WHIP --
Yoast Test Helper --
Duplicate Post --
Yst ACF --
Yst WooCommerce --
Yst News --
Yst Local --
Yst Video 6
Yst Premium --
Yst Free 30

Note: this rule was previously already "silently" enforced via clean-up sweeps.

YoastCS rules: enforce visibility on class constants

Impact on Yoast packages:

Plugin/Tool Errors/Warnings
PHPUnit Polyfills N/A (minimum PHP version too low)
WP Test Utils N/A (minimum PHP version too low)
YoastCS --
WHIP N/A (minimum PHP version too low)
Yoast Test Helper --
Duplicate Post --
Yst ACF 2
Yst WooCommerce 11
Yst News 1
Yst Local 11
Yst Video 1
Yst Premium 107
Yst Free 325

YoastCS rules: enforce nullable type for param with null default

Impact on Yoast packages:

Plugin/Tool Errors/Warnings
PHPUnit Polyfills N/A (minimum PHP version too low)
WP Test Utils N/A (minimum PHP version too low)
YoastCS --
WHIP N/A (minimum PHP version too low)
Yoast Test Helper --
Duplicate Post --
Yst ACF --
Yst WooCommerce --
Yst News --
Yst Local --
Yst Video --
Yst Premium 20
Yst Free 9

Related to #303

Related to 303

Impact on Yoast packages:

| Plugin/Tool       | Errors/Warnings |
|-------------------|-----------------|
| PHPUnit Polyfills | --
| WP Test Utils     | --
| YoastCS           | --
| WHIP              | --
| Yoast Test Helper | --
| Duplicate Post    | --
| Yst ACF           | --
| Yst WooCommerce   | --
| Yst News          | --
| Yst Local         | --
| Yst Video         | 6
| Yst Premium       | --
| Yst Free          | 30

Note: this rule was previously already "silently" enforced via clean-up sweeps.
Related to 303

Impact on Yoast packages:

| Plugin/Tool       | Errors/Warnings |
|-------------------|-----------------|
| PHPUnit Polyfills | _N/A_ (minimum PHP version too low)
| WP Test Utils     | _N/A_ (minimum PHP version too low)
| YoastCS           | --
| WHIP              | _N/A_ (minimum PHP version too low)
| Yoast Test Helper | --
| Duplicate Post    | --
| Yst ACF           | 2
| Yst WooCommerce   | 11
| Yst News          | 1
| Yst Local         | 11
| Yst Video         | 1
| Yst Premium       | 107
| Yst Free          | 325
Related to 303

Impact on Yoast packages:

| Plugin/Tool       | Errors/Warnings |
|-------------------|-----------------|
| PHPUnit Polyfills | _N/A_ (minimum PHP version too low)
| WP Test Utils     | _N/A_ (minimum PHP version too low)
| YoastCS           | --
| WHIP              | _N/A_ (minimum PHP version too low)
| Yoast Test Helper | --
| Duplicate Post    | --
| Yst ACF           | --
| Yst WooCommerce   | --
| Yst News          | --
| Yst Local         | --
| Yst Video         | --
| Yst Premium       | 20
| Yst Free          | 9
@coveralls
Copy link

Coverage Status

coverage: 99.411%. remained the same
when pulling 4717651 on JRF/yoastcs-more-modernization-rules
into 1f0f6a7 on develop.

@jrfnl jrfnl merged commit b92c396 into develop Dec 14, 2023
28 checks passed
@jrfnl jrfnl deleted the JRF/yoastcs-more-modernization-rules branch December 14, 2023 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants