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

Semantic blocks are not enforced in hash values #66

Closed
ferdynton opened this issue Jan 9, 2019 · 1 comment · Fixed by #263
Closed

Semantic blocks are not enforced in hash values #66

ferdynton opened this issue Jan 9, 2019 · 1 comment · Fixed by #263
Labels
standard bug 🐞 A bug in Standard

Comments

@ferdynton
Copy link

Hi! I applied standardrb to a project (love it ❤️) and I noticed this code didn't get corrected with the semantic block cop:

{
  foo: [].map do
    nil
  end,
}

Should this case be supported? Thanks!

@searls
Copy link
Contributor

searls commented Jan 10, 2019

Since we've adopted the code for this (and only this) cop, feel free to take a stab at adding a test and fixing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
standard bug 🐞 A bug in Standard
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants