Skip to content

[Fix #2121] Allow space before values in hash literals in ExtraSpacing #2233

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

Merged
merged 1 commit into from
Sep 13, 2015

Conversation

jonas054
Copy link
Collaborator

Leave the spacing before values to the AlignHash cop. Avoid infinite correction loops between AlignHash and ExtraSpacing.

@@ -2,6 +2,8 @@

## master (unreleased)

* [#2121](https://github.com/bbatsov/rubocop/issues/2121): Allow space before values in hash literals in `Style/ExtraSpacing` to avoid correction conflict. ([@jonas054][])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The section heading is missing.

@jonas054 jonas054 force-pushed the 2121_infinite_autocorrect branch from 362e3a6 to 2bd924f Compare September 11, 2015 04:08
@jonas054
Copy link
Collaborator Author

Added heading and fixed failing tests.

@jonas054 jonas054 force-pushed the 2121_infinite_autocorrect branch from 2bd924f to 2fef45c Compare September 12, 2015 06:40
@jonas054
Copy link
Collaborator Author

Rebased.

…aSpacing

Leave the spacing before values to the AlignHash cop. Avoid
infinite correction loops between AlignHash and ExtraSpacing.
@jonas054
Copy link
Collaborator Author

@bbatsov Have you had a chance to take another look?

bbatsov added a commit that referenced this pull request Sep 13, 2015
[Fix #2121] Allow space before values in hash literals in ExtraSpacing
@bbatsov bbatsov merged commit f9a6fbd into rubocop:master Sep 13, 2015
@bbatsov
Copy link
Collaborator

bbatsov commented Sep 13, 2015

👍

@jonas054 jonas054 deleted the 2121_infinite_autocorrect branch September 13, 2015 10:46
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy