{"issue":{"title":"Model parse error on value \"=>\" (tASSOC)","user":{"login":"thrillcall","id":60313,"url":"https://api.github.com/users/thrillcall","gravatar_id":"693bdd39e116e6cd24626d4fc4d2491f","avatar_url":"https://secure.gravatar.com/avatar/693bdd39e116e6cd24626d4fc4d2491f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-24T02:42:16Z","milestone":null,"state":"closed","updated_at":"2011-12-24T05:14:21Z","labels":[{"name":"ruby_parser","url":"https://api.github.com/repos/presidentbeef/brakeman/labels/ruby_parser","color":"d7e102"}],"id":2651489,"html_url":"https://github.com/presidentbeef/brakeman/issues/25","closed_at":"2011-12-24T05:13:10Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"I am using the Migrant gem ( https://github.com/pascalh1011/migrant ) and have a line like the following in a model file:\r\n\r\n```\r\n# Migrant\r\nstructure do\r\n...\r\n    country_code      \"US\",                   :as => :string, :validates => [:presence, :inclusion => { :in => [\"US\"] }], :limit => 2\r\n...\r\nend\r\n```\r\n\r\nThis causes brakeman to fail every time with the following error unless I comment this line out:\r\n\r\n```\r\n+ERRORS+\r\n+-----------------------------------------------------------------------------------------------------------------+\r\n|                Error                |                                 Location                                  |\r\n+-----------------------------------------------------------------------------------------------------------------+\r\n|  parse error on value \"=>\" (tASSOC) | could not parse /path/to/my/app/models/address.rb |\r\n+-----------------------------------------------------------------------------------------------------------------+\r\n```\r\n\r\nWhen commented out the rest of the scan seems to behave normally.","number":25,"url":"https://api.github.com/repos/presidentbeef/brakeman/issues/25","comments":5,"assignee":null},"comment":{"user":{"login":"presidentbeef","id":75613,"url":"https://api.github.com/users/presidentbeef","gravatar_id":"d72dabc6f2c7a9e3c7aba1a224158c89","avatar_url":"https://secure.gravatar.com/avatar/d72dabc6f2c7a9e3c7aba1a224158c89?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-24T05:14:21Z","updated_at":"2011-12-24T05:14:21Z","id":3266596,"body":":thumbsup:\r\n\r\nGlad to help.","url":"https://api.github.com/repos/presidentbeef/brakeman/issues/comments/3266596"},"action":"created"}