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
def foo(e) e.to_s.each_line(chomp: true) { |l| X } end
In my repro, X was a long namespaced-method call so I was looking to learn whether rubyfmt would recommend to keep as a single line or else.
X
rubyfmt
def foo(e) e.to_s.each_line(chomp: true) { | l | X } end
Unexpected formatting, breaking variable declaration across multiple lines seems wrong
|l|
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Input file
In my repro,
X
was a long namespaced-method call so I was looking to learn whetherrubyfmt
would recommend to keep as a single line or else.Rubyfmt's output
This breaks because
Unexpected formatting, breaking variable declaration across multiple lines seems wrong
|l|
The text was updated successfully, but these errors were encountered: