{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/1642","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1642/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1642/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1642/events","html_url":"https://github.com/bbatsov/rubocop/issues/1642","id":56919562,"number":1642,"title":"undefined method `empty?' for nil:NilClass in progress_formatter.rb","user":{"login":"DavidEGrayson","id":466764,"avatar_url":"https://avatars.githubusercontent.com/u/466764?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidEGrayson","html_url":"https://github.com/DavidEGrayson","followers_url":"https://api.github.com/users/DavidEGrayson/followers","following_url":"https://api.github.com/users/DavidEGrayson/following{/other_user}","gists_url":"https://api.github.com/users/DavidEGrayson/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidEGrayson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidEGrayson/subscriptions","organizations_url":"https://api.github.com/users/DavidEGrayson/orgs","repos_url":"https://api.github.com/users/DavidEGrayson/repos","events_url":"https://api.github.com/users/DavidEGrayson/events{/privacy}","received_events_url":"https://api.github.com/users/DavidEGrayson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-07T17:58:28Z","updated_at":"2015-02-08T13:51:20Z","closed_at":null,"body":"There seems to be a bug in Rubocop 0.29.0.  I am running it on Arch Linux 64-bit with Ruby 2.2.0.\r\n\r\nTo reproduce the bug, I made a new directory that just contains a `.rubocop.yml` file with the following contents:\r\n\r\n````yml\r\nAllCops:\r\n  Exclude:\r\n    - **/*_old.rb\r\n````\r\n\r\nThen I ran `rubocop` (with no options) at the command line and it produced the following output:\r\n\r\n````\r\nundefined method `empty?' for nil:NilClass\r\n/home/david/.gem/ruby/2.2.0/gems/rubocop-0.29.0/lib/rubocop/formatter/progress_formatter.rb:28:in `finished'\r\n/home/david/.gem/ruby/2.2.0/gems/rubocop-0.29.0/lib/rubocop/formatter/formatter_set.rb:28:in `block (3 levels) in <class:FormatterSet>'\r\n/home/david/.gem/ruby/2.2.0/gems/rubocop-0.29.0/lib/rubocop/formatter/formatter_set.rb:28:in `each'\r\n/home/david/.gem/ruby/2.2.0/gems/rubocop-0.29.0/lib/rubocop/formatter/formatter_set.rb:28:in `block (2 levels) in <class:FormatterSet>'\r\n/home/david/.gem/ruby/2.2.0/gems/rubocop-0.29.0/lib/rubocop/runner.rb:46:in `ensure in run'\r\n/home/david/.gem/ruby/2.2.0/gems/rubocop-0.29.0/lib/rubocop/runner.rb:47:in `run'\r\n/home/david/.gem/ruby/2.2.0/gems/rubocop-0.29.0/lib/rubocop/cli.rb:24:in `run'\r\n/home/david/.gem/ruby/2.2.0/gems/rubocop-0.29.0/bin/rubocop:13:in `block in <top (required)>'\r\n/opt/rubies/ruby-2.2.0/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\r\n/home/david/.gem/ruby/2.2.0/gems/rubocop-0.29.0/bin/rubocop:12:in `<top (required)>'\r\n/home/david/.gem/ruby/2.2.0/bin/rubocop:23:in `load'\r\n/home/david/.gem/ruby/2.2.0/bin/rubocop:23:in `<main>'\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/73411591","html_url":"https://github.com/bbatsov/rubocop/issues/1642#issuecomment-73411591","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1642","id":73411591,"user":{"login":"bquorning","id":22333,"avatar_url":"https://avatars.githubusercontent.com/u/22333?v=3","gravatar_id":"","url":"https://api.github.com/users/bquorning","html_url":"https://github.com/bquorning","followers_url":"https://api.github.com/users/bquorning/followers","following_url":"https://api.github.com/users/bquorning/following{/other_user}","gists_url":"https://api.github.com/users/bquorning/gists{/gist_id}","starred_url":"https://api.github.com/users/bquorning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bquorning/subscriptions","organizations_url":"https://api.github.com/users/bquorning/orgs","repos_url":"https://api.github.com/users/bquorning/repos","events_url":"https://api.github.com/users/bquorning/events{/privacy}","received_events_url":"https://api.github.com/users/bquorning/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T13:51:20Z","updated_at":"2015-02-08T13:51:20Z","body":"@jonas054 There’s a PR here: #1643."}}