You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like a cop that forces ruby code as much as possible on 1 line. I am integrating RuboCop way more strictly in a long-living project. It's going pretty well but the autocorrection sometimes adds more lines than needed IMO. To go even further I would like it if I can enforce code to be on 1 line as much as possible (until the max linewidth is reached). What happens now, for instance, is this:
method_call(other_method_call(foo: "this is a verry loooooooong string",bar: 1234),foobar: 123)
is corrected to:
method_call(other_method_call(foo: "this is a verry loooooooong string",bar: 1234),foobar: 123)
And I would like:
method_call(other_method_call(foo: "this is a verry loooooooong string",bar: 1234),foobar: 123)
I dug pretty deep in RuboCop docs but could not find any thing. Prettier for ruby does do it like this way but I would like to use 1 tool instead of the combination of a lot.
If possible I would be open to help write this. But I never did anything like linting/formatting so I don't think it will be an easy task
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!
Is your feature request related to a problem? Please describe.
I would like a cop that forces ruby code as much as possible on 1 line. I am integrating RuboCop way more strictly in a long-living project. It's going pretty well but the autocorrection sometimes adds more lines than needed IMO. To go even further I would like it if I can enforce code to be on 1 line as much as possible (until the max linewidth is reached). What happens now, for instance, is this:
is corrected to:
And I would like:
both are accepted with my current config
Describe the solution you'd like
A cop with this behavior
Describe alternatives you've considered
I dug pretty deep in RuboCop docs but could not find any thing. Prettier for ruby does do it like this way but I would like to use 1 tool instead of the combination of a lot.
If possible I would be open to help write this. But I never did anything like linting/formatting so I don't think it will be an easy task
The text was updated successfully, but these errors were encountered: