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

Autocorrect Mangling Function Args, Produces Invalid Ruby #515

Closed
dlecocq opened this issue Sep 27, 2013 · 1 comment
Closed

Autocorrect Mangling Function Args, Produces Invalid Ruby #515

dlecocq opened this issue Sep 27, 2013 · 1 comment
Assignees

Comments

@dlecocq
Copy link

dlecocq commented Sep 27, 2013

Distilled down from a real world example (https://github.com/seomoz/qless/blob/9e5ef9cae19ef8ba59d0ac51636bf068aa0ff9a1/spec/integration/worker_spec.rb#L107):

# foo.rb
# Encoding: utf-8

foo(:bar, {
    whiz: 2, bang: 3 }, option: 3)

If I then run rubocop -a foo.rb, I get the following:

# foo.rb
# Encoding: utf-8

foo(:bar, {
    option: 3)

Hope that helps!

@jonas054
Copy link
Collaborator

Thanks! I'll see if I can fix it.

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

2 participants