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 rules: remove exclusion for empty lines #350

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Nov 20, 2023

The Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines error code flags consecutive blank lines within function declarations.

This rule was previously silenced in YoastCS, but will now be enabled.

Impact on Yoast packages:

Plugin/Tool Errors/Warnings
PHPUnit Polyfills --
WP Test Utils --
YoastCS --
WHIP --
Yoast Test Helper 1
Duplicate Post 1
Yst ACF 2
Yst WooCommerce --
Yst News 1
Yst Local 9
Yst Video 23
Yst Premium 20
Yst Free 11

Related to #303

The `Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines` error code flags consecutive blank lines within function declarations.

This rule was previously silenced in YoastCS, but will now be enabled.

Impact on Yoast packages:

| Plugin/Tool       | Errors/Warnings |
|-------------------|-----------------|
| PHPUnit Polyfills | --
| WP Test Utils     | --
| YoastCS           | --
| WHIP              | --
| Yoast Test Helper | 1
| Duplicate Post    | 1
| Yst ACF           | 2
| Yst WooCommerce   | --
| Yst News          | 1
| Yst Local         | 9
| Yst Video         | 23
| Yst Premium       | 20
| Yst Free          | 11
@coveralls
Copy link

Coverage Status

coverage: 99.441%. remained the same
when pulling 7260b56 on JRF/yoastcs-ruleset-dont-allow-double-new-lines
into ec67c28 on develop.

@jrfnl jrfnl merged commit 25cc126 into develop Nov 20, 2023
25 checks passed
@jrfnl jrfnl deleted the JRF/yoastcs-ruleset-dont-allow-double-new-lines branch November 20, 2023 02:20
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.

2 participants