Method named "for" creates indentation problems
Opened this issue · 1 comments
moubry commented
The following is valid Ruby code:
class Foo
def self.for(bar)
end
end
Tailor generates the following problems for this code:
Problems:
1.
* position: 6:0
* property: indentation_spaces
* message: Line is indented to column 0, but should be at 2.
The issue is with using the method name for
. If I had instead used the name from
then there would be no problems reported.
turboladen commented
Looks like tailor is incorrectly detecting for
as a keyword; and since it doesn't find a related end
, the indentation is outta whack. Definitely a bug.