{"action":"opened","issue":{"url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/7513","repository_url":"https://api.github.com/repos/rubocop-hq/rubocop","labels_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/7513/labels{/name}","comments_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/7513/comments","events_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/7513/events","html_url":"https://github.com/rubocop-hq/rubocop/issues/7513","id":524364681,"node_id":"MDU6SXNzdWU1MjQzNjQ2ODE=","number":7513,"title":"undefined method `location' for nil:NilClass @ cop.rb:176","user":{"login":"DjigoLab","id":31393623,"node_id":"MDQ6VXNlcjMxMzkzNjIz","avatar_url":"https://avatars2.githubusercontent.com/u/31393623?v=4","gravatar_id":"","url":"https://api.github.com/users/DjigoLab","html_url":"https://github.com/DjigoLab","followers_url":"https://api.github.com/users/DjigoLab/followers","following_url":"https://api.github.com/users/DjigoLab/following{/other_user}","gists_url":"https://api.github.com/users/DjigoLab/gists{/gist_id}","starred_url":"https://api.github.com/users/DjigoLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DjigoLab/subscriptions","organizations_url":"https://api.github.com/users/DjigoLab/orgs","repos_url":"https://api.github.com/users/DjigoLab/repos","events_url":"https://api.github.com/users/DjigoLab/events{/privacy}","received_events_url":"https://api.github.com/users/DjigoLab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-11-18T13:22:20Z","updated_at":"2019-11-18T13:22:20Z","closed_at":null,"author_association":"NONE","body":"*Be clear, concise and precise in your description of the problem.\r\nOpen an issue with a descriptive title and a summary in grammatically correct,\r\ncomplete sentences.*\r\n\r\n*Use the template below when reporting bugs. Please, make sure that\r\nyou're running the latest stable RuboCop and that the problem you're reporting\r\nhasn't been reported (and potentially fixed) already.*\r\n\r\n*Before filing the ticket you should replace all text above the horizontal\r\nrule with your own words.*\r\n\r\n--------\r\n\r\n## Expected behavior\r\n\r\nDescribe here how you expected RuboCop to behave in this particular situation\r\n\r\nTo do the `\"rubocop --auto-correct --disable-uncorrectable\"` command and finish the analysis and correction properly\r\n\r\n## Actual behavior\r\nDescribe here what actually happened.\r\n\r\nAn error is prompted\r\n\r\n`106 files inspected, 9554 offenses detected, 9526 offenses corrected\r\nundefined method `location' for nil:NilClass\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/cop/cop.rb:176:in `disable_uncorrectable'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/cop/cop.rb:161:in `correct'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/cop/cop.rb:134:in `add_offense'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/cop/lint/syntax.rb:35:in `add_offense_from_diagnostic'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/cop/lint/syntax.rb:24:in `block in offenses_from_processed_source'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/cop/lint/syntax.rb:23:in `each'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/cop/lint/syntax.rb:23:in `offenses_from_processed_source'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/cop/team.rb:39:in `inspect_file'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:290:in `inspect_file'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:238:in `block in do_inspection_loop'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:270:in `block in iterate_until_no_changes'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:263:in `loop'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:263:in `iterate_until_no_changes'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:234:in `do_inspection_loop'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:119:in `block in file_offenses'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:137:in `file_offense_cache'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:117:in `file_offenses'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:108:in `process_file'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:87:in `block in each_inspected_file'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:86:in `each'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:86:in `reduce'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:86:in `each_inspected_file'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:73:in `inspect_files'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/runner.rb:39:in `run'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/cli.rb:213:in `execute_runner'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/cli.rb:80:in `execute_runners'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/lib/rubocop/cli.rb:51:in `run'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/exe/rubocop:13:in `block in <top (required)>'\r\n/home/djigo/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/gems/rubocop-0.76.0/exe/rubocop:12:in `<top (required)>'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/bin/rubocop:23:in `load'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/bin/rubocop:23:in `<main>'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/bin/ruby_executable_hooks:24:in `eval'\r\n/home/djigo/.rvm/gems/ruby-2.5.5/bin/ruby_executable_hooks:24:in `<main>'`\r\n\r\n\r\n## Steps to reproduce the problem\r\n\r\nThis is extremely important! Providing us with a reliable way to reproduce\r\na problem will expedite its solution.\r\n\r\nRun `\"rubocop --auto-correct --disable-uncorrectable\" \r\n`\r\n## RuboCop version\r\n\r\nInclude the output of `rubocop -V` or `bundle exec rubocop -V` if using Bundler. Here's an example:\r\n0.76.0 (using Parser 2.6.5.0, running on ruby 2.5.5 x86_64-linux)\r\n\r\n```\r\n$ [bundle exec] rubocop -V\r\n0.76.0 (using Parser 2.5.1.2, running on ruby 2.5.1 x86_64-linux)\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"DjigoLab"}}