presidentbeef/brakeman — Issue #48: parse error on Ruby 1.9 semicolons declairing block local variables |args;locals|
Author: alexblakemore
Created: 2012-02-21 17:55:48+00:00
State: open

Ruby 1.9 adds the ability to use a semicolon to introduce local variables to a block scope. Here's an example.

some_list.each do | item; var |
var = some temp calculation
item.do_something ( expression using var)
end

# var is out of scope

Brakeman's parser fails to handle this case, dies on the semicolon after item