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

Ruleset: add new sniff to standardize whitespace between functions #83

Merged
merged 2 commits into from
Jul 30, 2018

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Jul 30, 2018

As discussed with @moorscode, the Yoast plugins should have:

  • 1 blank line between functions
  • 1 blank line before the first function in a class
  • no blank lines between the last function in a class and the class closing brace.

This sniff with the configuration as set, will take care of checking this and can auto-fix this for codebases.

In a second commit any violations against this rule in the YoastCS codebase are fixed.

As discussed with moorscode, the Yoast plugins should have:
- 1 blank line between functions
- 1 blank line before the first function in a class
- no blank lines between the last function in a class and the class closing brace.

This sniff with the configuration as set, will take care of checking this and can auto-fix this for codebases.
@jrfnl jrfnl added this to the 1.0.0 milestone Jul 30, 2018
@moorscode moorscode merged commit 801403e into develop Jul 30, 2018
@moorscode moorscode deleted the JRF/add-functionspacing-sniff branch July 30, 2018 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants