turboladen / tailor

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

Class methods not detected as methods when checking indentation #109

Closed turboladen closed 12 years ago

turboladen commented 12 years ago

The following should get flagged for bad indentation on the self.my_method line but does not:

class A
 self.my_method
    puts 'stuff'
  end
end
turboladen commented 12 years ago

Dumb. This isn't valid Ruby! Changing the test that found this to:

class A
 def self.my_method
    puts 'stuff'
  end
end