turboladen / tailor

A RubyGem that allows for checking standard styling of Ruby files.
146 stars 18 forks source link

fix broken regex for indent close #154

Closed hollow closed 10 years ago

hollow commented 10 years ago

The following code was reported despite being clean:

{
  a: 1
}.each do |k, v|
  puts k, v
end

This patch fixes the multi-line code path and removes the unneeded line transition logic from IndentationManager.

turboladen commented 10 years ago

Man, thank you. I hated that line transition code. Seems scary to me to remove it, but if the tests look good then that's good for me.

And FWIW, before I release with this fix, I'll want to take a look and see if this resolves any other indentation related issues