We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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:
0.36.0 (using Parser 2.3.0.7, running on ruby 2.2.0 x86_64-darwin14)
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.
The text was updated successfully, but these errors were encountered:
[Fix rubocop#2993] Check for space after optional keyword args colon
23fad20
b605551
No branches or pull requests
Consider:
Rubocop (
0.36.0 (using Parser 2.3.0.7, running on ruby 2.2.0 x86_64-darwin14)
) says only:Which seems inconsistent; I think the keyword optional argument should also require a space after the colon.
The text was updated successfully, but these errors were encountered: