{"action":"created","comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments/165553462","pull_request_review_id":93513637,"id":165553462,"diff_hunk":"@@ -292,6 +292,7 @@ Layout/EmptyLinesAroundClassBody:\n     - empty_lines_except_namespace\n     - empty_lines_special\n     - no_empty_lines\n+    - beginning_only","path":"config/default.yml","position":4,"original_position":4,"commit_id":"ae3c5f317ada59d8a7d822f51c85fca90e9dbf02","original_commit_id":"ae3c5f317ada59d8a7d822f51c85fca90e9dbf02","user":{"login":"jmks","id":4923990,"avatar_url":"https://avatars1.githubusercontent.com/u/4923990?v=4","gravatar_id":"","url":"https://api.github.com/users/jmks","html_url":"https://github.com/jmks","followers_url":"https://api.github.com/users/jmks/followers","following_url":"https://api.github.com/users/jmks/following{/other_user}","gists_url":"https://api.github.com/users/jmks/gists{/gist_id}","starred_url":"https://api.github.com/users/jmks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmks/subscriptions","organizations_url":"https://api.github.com/users/jmks/orgs","repos_url":"https://api.github.com/users/jmks/repos","events_url":"https://api.github.com/users/jmks/events{/privacy}","received_events_url":"https://api.github.com/users/jmks/received_events","type":"User","site_admin":false},"body":"I thought this formatting option was questionable, but for the sake of completeness it makes sense. It was also an easy addition.","created_at":"2018-02-02T03:52:36Z","updated_at":"2018-02-02T03:52:36Z","html_url":"https://github.com/bbatsov/rubocop/pull/5502#discussion_r165553462","pull_request_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/5502","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments/165553462"},"html":{"href":"https://github.com/bbatsov/rubocop/pull/5502#discussion_r165553462"},"pull_request":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/5502"}},"in_reply_to_id":164167264},"pull_request":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/5502","id":164992267,"html_url":"https://github.com/bbatsov/rubocop/pull/5502","diff_url":"https://github.com/bbatsov/rubocop/pull/5502.diff","patch_url":"https://github.com/bbatsov/rubocop/pull/5502.patch","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/5502","number":5502,"state":"open","locked":false,"title":"#4812 Add style for extra space at beginning of class to Layout/EmptyLinesAroundClassBody cop","user":{"login":"jmks","id":4923990,"avatar_url":"https://avatars1.githubusercontent.com/u/4923990?v=4","gravatar_id":"","url":"https://api.github.com/users/jmks","html_url":"https://github.com/jmks","followers_url":"https://api.github.com/users/jmks/followers","following_url":"https://api.github.com/users/jmks/following{/other_user}","gists_url":"https://api.github.com/users/jmks/gists{/gist_id}","starred_url":"https://api.github.com/users/jmks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmks/subscriptions","organizations_url":"https://api.github.com/users/jmks/orgs","repos_url":"https://api.github.com/users/jmks/repos","events_url":"https://api.github.com/users/jmks/events{/privacy}","received_events_url":"https://api.github.com/users/jmks/received_events","type":"User","site_admin":false},"body":"Add another `SupportedStyle` option to the `Layout/EmptyLinesAroundClassBody` cop.\r\n`beginning_only` allows an empty line only after the class definition:\r\n\r\n```ruby\r\n# bad\r\nclass Foo\r\n\r\n  def bar\r\n    # ...\r\n  end\r\n\r\nend\r\n\r\n# bad\r\nclass Foo\r\n  def bar\r\n    # ...\r\n  end\r\n\r\nend\r\n\r\n# good\r\nclass Foo\r\n\r\n  def bar\r\n    # ...\r\n  end\r\nend\r\n```\r\n\r\n-----------------\r\n\r\nBefore submitting the PR make sure the following are checked:\r\n\r\n* [x] Wrote [good commit messages][1].\r\n* [x] Commit message starts with `[Fix #issue-number]` (if the related issue exists).\r\n* [x] Feature branch is up-to-date with `master` (if not - rebase it).\r\n* [x] Squashed related commits together.\r\n* [x] Added tests.\r\n* [x] Added an entry to the [Changelog](../blob/master/CHANGELOG.md) if the new code introduces user-observable changes. See [changelog entry format](../blob/master/CONTRIBUTING.md#changelog-entry-format).\r\n* [x] The PR relates to *only* one subject with a clear title\r\n  and description in grammatically correct, complete sentences.\r\n* [x] Run `rake default` or `rake parallel`. It executes all tests and RuboCop for itself, and generates the documentation.\r\n\r\n[1]: http://chris.beams.io/posts/git-commit/\r\n","created_at":"2018-01-24T23:31:53Z","updated_at":"2018-02-02T03:52:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d1a41e1a23d69a090d51ef20b20502ef0afe5f3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/5502/commits","review_comments_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/5502/comments","review_comment_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/5502/comments","statuses_url":"https://api.github.com/repos/bbatsov/rubocop/statuses/ae3c5f317ada59d8a7d822f51c85fca90e9dbf02","head":{"label":"jmks:4812_extra_space_at_beginning_or_end_of_class","ref":"4812_extra_space_at_beginning_or_end_of_class","sha":"ae3c5f317ada59d8a7d822f51c85fca90e9dbf02","user":{"login":"jmks","id":4923990,"avatar_url":"https://avatars1.githubusercontent.com/u/4923990?v=4","gravatar_id":"","url":"https://api.github.com/users/jmks","html_url":"https://github.com/jmks","followers_url":"https://api.github.com/users/jmks/followers","following_url":"https://api.github.com/users/jmks/following{/other_user}","gists_url":"https://api.github.com/users/jmks/gists{/gist_id}","starred_url":"https://api.github.com/users/jmks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmks/subscriptions","organizations_url":"https://api.github.com/users/jmks/orgs","repos_url":"https://api.github.com/users/jmks/repos","events_url":"https://api.github.com/users/jmks/events{/privacy}","received_events_url":"https://api.github.com/users/jmks/received_events","type":"User","site_admin":false},"repo":{"id":70099016,"name":"rubocop","full_name":"jmks/rubocop","owner":{"login":"jmks","id":4923990,"avatar_url":"https://avatars1.githubusercontent.com/u/4923990?v=4","gravatar_id":"","url":"https://api.github.com/users/jmks","html_url":"https://github.com/jmks","followers_url":"https://api.github.com/users/jmks/followers","following_url":"https://api.github.com/users/jmks/following{/other_user}","gists_url":"https://api.github.com/users/jmks/gists{/gist_id}","starred_url":"https://api.github.com/users/jmks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmks/subscriptions","organizations_url":"https://api.github.com/users/jmks/orgs","repos_url":"https://api.github.com/users/jmks/repos","events_url":"https://api.github.com/users/jmks/events{/privacy}","received_events_url":"https://api.github.com/users/jmks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmks/rubocop","description":"A Ruby static code analyzer, based on the community Ruby style guide.","fork":true,"url":"https://api.github.com/repos/jmks/rubocop","forks_url":"https://api.github.com/repos/jmks/rubocop/forks","keys_url":"https://api.github.com/repos/jmks/rubocop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmks/rubocop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmks/rubocop/teams","hooks_url":"https://api.github.com/repos/jmks/rubocop/hooks","issue_events_url":"https://api.github.com/repos/jmks/rubocop/issues/events{/number}","events_url":"https://api.github.com/repos/jmks/rubocop/events","assignees_url":"https://api.github.com/repos/jmks/rubocop/assignees{/user}","branches_url":"https://api.github.com/repos/jmks/rubocop/branches{/branch}","tags_url":"https://api.github.com/repos/jmks/rubocop/tags","blobs_url":"https://api.github.com/repos/jmks/rubocop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmks/rubocop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmks/rubocop/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmks/rubocop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmks/rubocop/statuses/{sha}","languages_url":"https://api.github.com/repos/jmks/rubocop/languages","stargazers_url":"https://api.github.com/repos/jmks/rubocop/stargazers","contributors_url":"https://api.github.com/repos/jmks/rubocop/contributors","subscribers_url":"https://api.github.com/repos/jmks/rubocop/subscribers","subscription_url":"https://api.github.com/repos/jmks/rubocop/subscription","commits_url":"https://api.github.com/repos/jmks/rubocop/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmks/rubocop/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmks/rubocop/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmks/rubocop/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmks/rubocop/contents/{+path}","compare_url":"https://api.github.com/repos/jmks/rubocop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmks/rubocop/merges","archive_url":"https://api.github.com/repos/jmks/rubocop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmks/rubocop/downloads","issues_url":"https://api.github.com/repos/jmks/rubocop/issues{/number}","pulls_url":"https://api.github.com/repos/jmks/rubocop/pulls{/number}","milestones_url":"https://api.github.com/repos/jmks/rubocop/milestones{/number}","notifications_url":"https://api.github.com/repos/jmks/rubocop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmks/rubocop/labels{/name}","releases_url":"https://api.github.com/repos/jmks/rubocop/releases{/id}","deployments_url":"https://api.github.com/repos/jmks/rubocop/deployments","created_at":"2016-10-05T20:59:46Z","updated_at":"2016-10-05T20:59:50Z","pushed_at":"2018-02-02T00:15:30Z","git_url":"git://github.com/jmks/rubocop.git","ssh_url":"git@github.com:jmks/rubocop.git","clone_url":"https://github.com/jmks/rubocop.git","svn_url":"https://github.com/jmks/rubocop","homepage":"http://rubocop.readthedocs.io","size":19937,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bbatsov:master","ref":"master","sha":"36ab90195e1cd3a1162ddcfb72e0b2ab6143c75c","user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars0.githubusercontent.com/u/103882?v=4","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"repo":{"id":4095287,"name":"rubocop","full_name":"bbatsov/rubocop","owner":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars0.githubusercontent.com/u/103882?v=4","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbatsov/rubocop","description":"A Ruby static code analyzer, based on the community Ruby style guide.","fork":false,"url":"https://api.github.com/repos/bbatsov/rubocop","forks_url":"https://api.github.com/repos/bbatsov/rubocop/forks","keys_url":"https://api.github.com/repos/bbatsov/rubocop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbatsov/rubocop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbatsov/rubocop/teams","hooks_url":"https://api.github.com/repos/bbatsov/rubocop/hooks","issue_events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/events{/number}","events_url":"https://api.github.com/repos/bbatsov/rubocop/events","assignees_url":"https://api.github.com/repos/bbatsov/rubocop/assignees{/user}","branches_url":"https://api.github.com/repos/bbatsov/rubocop/branches{/branch}","tags_url":"https://api.github.com/repos/bbatsov/rubocop/tags","blobs_url":"https://api.github.com/repos/bbatsov/rubocop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbatsov/rubocop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbatsov/rubocop/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbatsov/rubocop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbatsov/rubocop/statuses/{sha}","languages_url":"https://api.github.com/repos/bbatsov/rubocop/languages","stargazers_url":"https://api.github.com/repos/bbatsov/rubocop/stargazers","contributors_url":"https://api.github.com/repos/bbatsov/rubocop/contributors","subscribers_url":"https://api.github.com/repos/bbatsov/rubocop/subscribers","subscription_url":"https://api.github.com/repos/bbatsov/rubocop/subscription","commits_url":"https://api.github.com/repos/bbatsov/rubocop/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbatsov/rubocop/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbatsov/rubocop/contents/{+path}","compare_url":"https://api.github.com/repos/bbatsov/rubocop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbatsov/rubocop/merges","archive_url":"https://api.github.com/repos/bbatsov/rubocop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbatsov/rubocop/downloads","issues_url":"https://api.github.com/repos/bbatsov/rubocop/issues{/number}","pulls_url":"https://api.github.com/repos/bbatsov/rubocop/pulls{/number}","milestones_url":"https://api.github.com/repos/bbatsov/rubocop/milestones{/number}","notifications_url":"https://api.github.com/repos/bbatsov/rubocop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbatsov/rubocop/labels{/name}","releases_url":"https://api.github.com/repos/bbatsov/rubocop/releases{/id}","deployments_url":"https://api.github.com/repos/bbatsov/rubocop/deployments","created_at":"2012-04-21T10:09:58Z","updated_at":"2018-02-02T01:44:18Z","pushed_at":"2018-02-02T02:17:40Z","git_url":"git://github.com/bbatsov/rubocop.git","ssh_url":"git@github.com:bbatsov/rubocop.git","clone_url":"https://github.com/bbatsov/rubocop.git","svn_url":"https://github.com/bbatsov/rubocop","homepage":"http://rubocop.readthedocs.io","size":20113,"stargazers_count":8622,"watchers_count":8622,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1633,"mirror_url":null,"archived":false,"open_issues_count":309,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1633,"open_issues":309,"watchers":8622,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/5502"},"html":{"href":"https://github.com/bbatsov/rubocop/pull/5502"},"issue":{"href":"https://api.github.com/repos/bbatsov/rubocop/issues/5502"},"comments":{"href":"https://api.github.com/repos/bbatsov/rubocop/issues/5502/comments"},"review_comments":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/5502/comments"},"review_comment":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/5502/commits"},"statuses":{"href":"https://api.github.com/repos/bbatsov/rubocop/statuses/ae3c5f317ada59d8a7d822f51c85fca90e9dbf02"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jmks"}}