fables-tales / rubyfmt

Ruby Autoformatter!
MIT License
1.07k stars 50 forks source link

Revert "Fix comment rendering for sclasses (#420)" #441

Closed reese closed 1 year ago

reese commented 1 year ago

This reverts commit 3b06f3c2594571cdfc5f605be69ad74f33fa2637.

I think the testing on that PR is insufficient, because method definitions that come immediately after the sclass definition get busted. For example, this will break:

class Example
  class << self
    def show
    end
  end

  def another_method!; end
end