seattlerb/flay

Parse error on named argument in ruby 2.0

joenas opened this issue · 2 comments

$ cat test.rb 
class Test
  def initialize(variable, named_variable: 1)
  end
end

$ flay test.rb
  test.rb:2 :: parse error on value ":" (tCOLON)
  skipping test.rb
Total score (lower is better) = 0

ruby_parser doesn't support 2.0 syntax at this time.

This should be fixed by the latest ruby_parser release.