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

Rubocop rules related to empty lines and trailing whitespace #942

Merged
merged 5 commits into from
May 18, 2021

Conversation

solebared
Copy link
Collaborator

Why

Building on #935, fixes violations of several whitespace related rules.

What

See commits for list of rules tackled.

One rule worth mentioning: Standard enforces the final_newline style for the Layout/TrailingEmptyLines rule.

In accepting this, which i recommend, authors will need to configure their editors to follow this convention.
Here's an article describing how to configure this in common editors.

Testing

Relying on our existing suite to catch any regressions.

Next Steps

?

Outstanding Questions, Concerns and Other Notes

Really curious the team's thoughts on this.

Pre-Merge Checklist

  • Security & accessibility have been considered
  • Tests have been added, or an explanation has been given why the features cannot be tested
  • Documentation and comments have been added to the codebase where required
  • Entry added to CHANGELOG.md if appropriate
  • Outstanding questions and concerns have been resolved
  • Any next steps have been turned into Issues or Discussions as appropriate

@solebared solebared changed the title Rubocop whitespace rules Rubocop rules related to empty lines and trailing whitespace Apr 15, 2021
@solebared solebared force-pushed the rubocop/single-line-methods branch 2 times, most recently from 00e1619 to 2dad583 Compare April 16, 2021 16:31
@solebared solebared force-pushed the rubocop/single-line-methods branch from c7f8135 to c1dcfcc Compare May 3, 2021 18:08
@solebared solebared force-pushed the rubocop/single-line-methods branch from c1dcfcc to ae9cdf2 Compare May 18, 2021 20:56
Base automatically changed from rubocop/single-line-methods to main May 18, 2021 20:58
Accept Standard recommendations and fix violations for:
* Layout/EmptyComment
* Layout/EmptyLineAfterMagicComment
* Layout/EmptyLinesAroundAccessModifier
* Layout/EmptyLinesAroundArguments
* Layout/EmptyLinesAroundClassBody
* Layout/EmptyLinesAroundModuleBody
@solebared solebared merged commit 9e86c58 into main May 18, 2021
@solebared solebared deleted the rubocop/whitespace branch May 18, 2021 21:03
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