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

Space after keyword optional arguments is not enforced #2993

Closed
owst opened this issue Mar 31, 2016 · 0 comments
Closed

Space after keyword optional arguments is not enforced #2993

owst opened this issue Mar 31, 2016 · 0 comments

Comments

@owst
Copy link
Contributor

owst commented Mar 31, 2016

Consider:

def f(x:1)
  { x:x }
end

Rubocop (0.36.0 (using Parser 2.3.0.7, running on ruby 2.2.0 x86_64-darwin14)) says only:

Offenses:

/tmp/foo.rb:2:6: C: Space missing after colon.
  { x:x }
     ^

1 file inspected, 1 offense detected

Which seems inconsistent; I think the keyword optional argument should also require a space after the colon.

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

No branches or pull requests

1 participant