I'm adopting sorbet and adding method signatures. Since these are connected things, I expect them to be grouped together, as you can see in the Sorbet docs: https://sorbet.org/docs/sigs. However, when formatting with rufo, a newline is inserted:
% rufo
# Input
class MyObj
sig {params(x: Integer).void}
def initialize(x)
@y = x # y has the inferred type Integer
end
end
# ctrl-d: Output
class MyObj
sig { params(x: Integer).void }
def initialize(x)
@y = x # y has the inferred type Integer
end
end
I'm adopting sorbet and adding method signatures. Since these are connected things, I expect them to be grouped together, as you can see in the Sorbet docs: https://sorbet.org/docs/sigs. However, when formatting with rufo, a newline is inserted: