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

[Fix #3958] Bug of Style/SpaceInsideHashLiteralBraces #3976

Merged
merged 4 commits into from Feb 6, 2017

Conversation

nodo
Copy link

@nodo nodo commented Jan 27, 2017

Summary

The following piece of code should not raise a style violation:

{ key: '{' }

Details

This PR fixes #3958. More details are in the issue page.

Andrea Nodari added 2 commits January 28, 2017 17:52
When checking the braces, it uses the type instead of text to avoid
confusion a brace in a string. This avoid a confusion when token text is
a brace, but the token type is a string.
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.

Bug of Style/SpaceInsideHashLiteralBraces
2 participants