{"action":"closed","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/2002","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2002/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2002/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2002/events","html_url":"https://github.com/bbatsov/rubocop/issues/2002","id":92173208,"number":2002,"title":"Comments after a class cause \"Missing top-level class documentation comment.\" warning","user":{"login":"ifreecarve","id":583459,"avatar_url":"https://avatars.githubusercontent.com/u/583459?v=3","gravatar_id":"","url":"https://api.github.com/users/ifreecarve","html_url":"https://github.com/ifreecarve","followers_url":"https://api.github.com/users/ifreecarve/followers","following_url":"https://api.github.com/users/ifreecarve/following{/other_user}","gists_url":"https://api.github.com/users/ifreecarve/gists{/gist_id}","starred_url":"https://api.github.com/users/ifreecarve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifreecarve/subscriptions","organizations_url":"https://api.github.com/users/ifreecarve/orgs","repos_url":"https://api.github.com/users/ifreecarve/repos","events_url":"https://api.github.com/users/ifreecarve/events{/privacy}","received_events_url":"https://api.github.com/users/ifreecarve/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-30T19:02:00Z","updated_at":"2015-07-07T16:35:36Z","closed_at":"2015-07-07T16:35:36Z","body":"Contents of `test.rb`:\r\n\r\n```ruby\r\n  # I'm pretty sure I'm a top-level class documentation comment\r\n  class UhOh\r\n    attr_accessor :im_not_an_empty_class\r\n  end # I am the comment that causes the bug. Remove me and see.\r\n```\r\n\r\n```\r\n$ rubocop -v\r\n0.31.0\r\n$ rubocop -D test.rb \r\nInspecting 1 file\r\nC\r\n\r\nOffenses:\r\n\r\ntest.rb:2:1: C: Style/Documentation: Missing top-level class documentation comment.\r\nclass UhOh\r\n^^^^^\r\n\r\n1 file inspected, 1 offense detected\r\n\r\n```\r\n\r\nIf you remove the last comment, it works as expected:\r\n\r\n```\r\n$ rubocop -D test.rb \r\nInspecting 1 file\r\n.\r\n\r\n1 file inspected, no offenses detected\r\n```"}}