Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Method named "for" creates indentation problems #138

Open
moubry opened this issue Aug 19, 2013 · 1 comment
Open

Method named "for" creates indentation problems #138

moubry opened this issue Aug 19, 2013 · 1 comment
Labels

Comments

@moubry
Copy link

moubry commented Aug 19, 2013

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
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants