{"action":"created","issue":{"url":"https://api.github.com/repos/presidentbeef/brakeman/issues/1155","repository_url":"https://api.github.com/repos/presidentbeef/brakeman","labels_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/1155/labels{/name}","comments_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/1155/comments","events_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/1155/events","html_url":"https://github.com/presidentbeef/brakeman/issues/1155","id":292065426,"number":1155,"title":"Error: undefined method `line=' for nil:NilClass","user":{"login":"jesseproudman","id":606,"avatar_url":"https://avatars2.githubusercontent.com/u/606?v=4","gravatar_id":"","url":"https://api.github.com/users/jesseproudman","html_url":"https://github.com/jesseproudman","followers_url":"https://api.github.com/users/jesseproudman/followers","following_url":"https://api.github.com/users/jesseproudman/following{/other_user}","gists_url":"https://api.github.com/users/jesseproudman/gists{/gist_id}","starred_url":"https://api.github.com/users/jesseproudman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesseproudman/subscriptions","organizations_url":"https://api.github.com/users/jesseproudman/orgs","repos_url":"https://api.github.com/users/jesseproudman/repos","events_url":"https://api.github.com/users/jesseproudman/events{/privacy}","received_events_url":"https://api.github.com/users/jesseproudman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-01-26T23:47:55Z","updated_at":"2018-02-06T16:10:58Z","closed_at":"2018-02-06T16:10:04Z","author_association":"NONE","body":"### Background\r\n\r\nBrakeman version: 4.1.1\r\nRails version: 5.1.4\r\nRuby version: 2.3.6p384\r\n\r\nLink to Rails application code: Private codebase\r\n\r\n### Issue\r\n\r\nScan of repository is showing a single error linking to the Brakeman code base. Attempting to track down what's causing it, but the error notice isn't providing us enough background to look into the code.\r\n\r\n```\r\n== Brakeman Report ==\r\n\r\nApplication Path: xxx\r\nRails Version: 5.1.4\r\nBrakeman Version: 4.1.1\r\nScan Date: 2018-01-23 15:02:47 -0800\r\nDuration: 1.386945 seconds\r\nChecks Run: BasicAuth, BasicAuthTimingAttack, ContentTag, CreateWith, CrossSiteScripting, DefaultRoutes, Deserialize, DetailedExceptions, DigestDoS, DynamicFinders, EscapeFunction, Evaluation, Execute, FileAccess, FileDisclosure, FilterSkipping, ForgerySetting, HeaderDoS, I18nXSS, JRubyXML, JSONEncoding, JSONParsing, LinkTo, LinkToHref, MailTo, MassAssignment, MimeTypeDoS, ModelAttrAccessible, ModelAttributes, ModelSerialize, NestedAttributes, NestedAttributesBypass, NumberToCurrency, PermitAttributes, QuoteTableName, Redirect, RegexDoS, Render, RenderDoS, RenderInline, ResponseSplitting, RouteDoS, SQL, SQLCVEs, SSLVerify, SafeBufferManipulation, SanitizeMethods, SelectTag, SelectVulnerability, Send, SendFile, SessionManipulation, SessionSettings, SimpleFormat, SingleQuotes, SkipBeforeFilter, StripTags, SymbolDoSCVE, TranslateBug, UnsafeReflection, ValidationRegex, WithoutProtection, XMLDoS, YAMLParsing\r\n\r\n== Overview ==\r\n\r\nControllers: 6\r\nModels: 8\r\nTemplates: 1\r\nErrors: 1\r\nSecurity Warnings: 0\r\n\r\n== Warning Types ==\r\n\r\n\r\n== Errors ==\r\n\r\nError: undefined method `line=' for nil:NilClass\r\nLocation: /Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/alias_processor.rb:434:in `process_gasgn'\r\n\r\nNo warnings found\r\n```\r\n\r\nRunning with debug just repeats this over and over and over:\r\n\r\n```\r\n== Errors ==\r\n\r\nError: undefined method `line=' for nil:NilClass\r\nLocation: /Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/alias_processor.rb:434:in `process_gasgn'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/ruby_parser/bm_sexp_processor.rb:75:in `block in process'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/ruby_parser/bm_sexp_processor.rb:112:in `in_context'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/ruby_parser/bm_sexp_processor.rb:71:in `process'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/alias_processor.rb:61:in `block in process_default'\r\n(eval):3:in `map!'\r\n(eval):3:in `map!'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/alias_processor.rb:59:in `process_default'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/ruby_parser/bm_sexp_processor.rb:77:in `block in process'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/ruby_parser/bm_sexp_processor.rb:112:in `in_context'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/ruby_parser/bm_sexp_processor.rb:71:in `process'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/alias_processor.rb:61:in `block in process_default'\r\n(eval):3:in `map!'\r\n(eval):3:in `map!'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/alias_processor.rb:59:in `process_default'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/alias_processor.rb:503:in `process_masgn'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/ruby_parser/bm_sexp_processor.rb:75:in `block in process'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/ruby_parser/bm_sexp_processor.rb:112:in `in_context'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/ruby_parser/bm_sexp_processor.rb:71:in `process'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/lib/processor_helper.rb:13:in `block in process_all!'\r\n(eval):3:in `map!'\r\n(eval):3:in `map!'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/lib/processor_helper.rb:11:in `process_all!'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/alias_processor.rb:354:in `block in process_defn'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/alias_processor.rb:364:in `block in meth_env'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/bundle/ruby/2.3.0/gems/sexp_processor-4.10.0/lib/sexp_processor.rb:452:in `scope'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/alias_processor.rb:361:in `meth_env'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/brakeman/processors/alias_processor.rb:353:in `process_defn'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/ruby_parser/bm_sexp_processor.rb:75:in `block in process'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/ruby_parser/bm_sexp_processor.rb:112:in `in_context'\r\n/Users/jproudman/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/brakeman-4.1.1/lib/ruby_parser/bm_sexp_processor.rb:71:in `process'\r\n```\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/presidentbeef/brakeman/issues/comments/363472824","html_url":"https://github.com/presidentbeef/brakeman/issues/1155#issuecomment-363472824","issue_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/1155","id":363472824,"user":{"login":"jesseproudman","id":606,"avatar_url":"https://avatars2.githubusercontent.com/u/606?v=4","gravatar_id":"","url":"https://api.github.com/users/jesseproudman","html_url":"https://github.com/jesseproudman","followers_url":"https://api.github.com/users/jesseproudman/followers","following_url":"https://api.github.com/users/jesseproudman/following{/other_user}","gists_url":"https://api.github.com/users/jesseproudman/gists{/gist_id}","starred_url":"https://api.github.com/users/jesseproudman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesseproudman/subscriptions","organizations_url":"https://api.github.com/users/jesseproudman/orgs","repos_url":"https://api.github.com/users/jesseproudman/repos","events_url":"https://api.github.com/users/jesseproudman/events{/privacy}","received_events_url":"https://api.github.com/users/jesseproudman/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T16:10:58Z","updated_at":"2018-02-06T16:10:58Z","author_association":"NONE","body":"Thanks!"}}
{"actor":{"display_login":"jesseproudman"}}