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
Given the input
def example a( b: :c, d: e( f: g ), h: :i) end
I get the message
example.rb:6:8: C: [Corrected] Align the elements of a hash literal if they span more than one line. ), h: :i) ^^^^^
and the correction
def example a( b: :c, d: e( f: g h: :i) end
Notably, it breaks the nested function call, and causes a syntax error.
Clearly this is being parsed as a hash literal rather than function parameters and it doesn't know about nested function calls.
hash literal
function parameters
I tried to dig around, but I'm not quite sure where to start.
The text was updated successfully, but these errors were encountered:
Seems i can do the same with a hash
{ a: :b, c: { d: :e }, f: { g: :h } }
becomes
{ a: :b, c: { d: :e f: { g: :h } }
Sorry, something went wrong.
That fix looks good @jonas054. Thanks.
9284bb2
Merge pull request #1822 from jonas054/1820_fix_align_hash
af27223
[Fix #1820] Check only keys starting their lines in AlignHash
jonas054
No branches or pull requests
Given the input
I get the message
and the correction
Notably, it breaks the nested function call, and causes a syntax error.
Clearly this is being parsed as a
hash literal
rather thanfunction parameters
and it doesn't know about nested function calls.
I tried to dig around, but I'm not quite sure where to start.
The text was updated successfully, but these errors were encountered: