turboladen / tailor

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

Support for another indentation type #94

Closed jaymzh closed 10 years ago

jaymzh commented 12 years ago

I'd like to support this style indentation

bla = something::somethingelse::someclass::method(foo, bar, baz,
                                                                                                bing, ding)

Where we indent to the opening paryn...

jaymzh commented 12 years ago

ack. The github markdown doesn't do waht I want. The 'bing' there should be aligned with the foo.

jaymzh commented 12 years ago

relatedly, I think it's standard to do continuation indentation at twice that of normal indentation. So:

if ...
  bar
end

vs

somemethodhere(
    "long string that won't fit on above line")

Or better yet:

def something(waka, baka, bing
    bla, goop, foop)
  stuff
end

so they don't conflict. Of course, I'd rather the above be

def something(waka, baka, bing
              bla, goop, foop)
  stuff
end
turboladen commented 12 years ago

Yeah, totally. I definitely don't like the idea of roping everyone into one style option. Great call.