turboladen/tailor

Class methods not detected as methods when checking indentation

Closed this issue · 1 comments

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

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

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