{"action":"closed","number":5512,"pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/5512","id":62060925,"html_url":"https://github.com/eslint/eslint/pull/5512","diff_url":"https://github.com/eslint/eslint/pull/5512.diff","patch_url":"https://github.com/eslint/eslint/pull/5512.patch","issue_url":"https://api.github.com/repos/eslint/eslint/issues/5512","number":5512,"state":"closed","locked":false,"title":"Fix: newline-before-return: bug with comment (fixes: 5480)","user":{"login":"diki","id":254975,"avatar_url":"https://avatars.githubusercontent.com/u/254975?v=3","gravatar_id":"","url":"https://api.github.com/users/diki","html_url":"https://github.com/diki","followers_url":"https://api.github.com/users/diki/followers","following_url":"https://api.github.com/users/diki/following{/other_user}","gists_url":"https://api.github.com/users/diki/gists{/gist_id}","starred_url":"https://api.github.com/users/diki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diki/subscriptions","organizations_url":"https://api.github.com/users/diki/orgs","repos_url":"https://api.github.com/users/diki/repos","events_url":"https://api.github.com/users/diki/events{/privacy}","received_events_url":"https://api.github.com/users/diki/received_events","type":"User","site_admin":false},"body":"I think problem occurs because sourceCode.getComments(node).leading miscalculates, this is a quick fix.","created_at":"2016-03-08T11:52:09Z","updated_at":"2016-03-10T01:32:55Z","closed_at":"2016-03-10T01:32:54Z","merged_at":"2016-03-10T01:32:54Z","merge_commit_sha":"9c8eb5332812e8a0b4c65095a630054a4bb0bffa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eslint/eslint/pulls/5512/commits","review_comments_url":"https://api.github.com/repos/eslint/eslint/pulls/5512/comments","review_comment_url":"https://api.github.com/repos/eslint/eslint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/5512/comments","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/03e6869ac8ec7a70a56f0c62220c3c68aa2240c0","head":{"label":"diki:issue5480","ref":"issue5480","sha":"03e6869ac8ec7a70a56f0c62220c3c68aa2240c0","user":{"login":"diki","id":254975,"avatar_url":"https://avatars.githubusercontent.com/u/254975?v=3","gravatar_id":"","url":"https://api.github.com/users/diki","html_url":"https://github.com/diki","followers_url":"https://api.github.com/users/diki/followers","following_url":"https://api.github.com/users/diki/following{/other_user}","gists_url":"https://api.github.com/users/diki/gists{/gist_id}","starred_url":"https://api.github.com/users/diki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diki/subscriptions","organizations_url":"https://api.github.com/users/diki/orgs","repos_url":"https://api.github.com/users/diki/repos","events_url":"https://api.github.com/users/diki/events{/privacy}","received_events_url":"https://api.github.com/users/diki/received_events","type":"User","site_admin":false},"repo":{"id":53175616,"name":"eslint","full_name":"diki/eslint","owner":{"login":"diki","id":254975,"avatar_url":"https://avatars.githubusercontent.com/u/254975?v=3","gravatar_id":"","url":"https://api.github.com/users/diki","html_url":"https://github.com/diki","followers_url":"https://api.github.com/users/diki/followers","following_url":"https://api.github.com/users/diki/following{/other_user}","gists_url":"https://api.github.com/users/diki/gists{/gist_id}","starred_url":"https://api.github.com/users/diki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diki/subscriptions","organizations_url":"https://api.github.com/users/diki/orgs","repos_url":"https://api.github.com/users/diki/repos","events_url":"https://api.github.com/users/diki/events{/privacy}","received_events_url":"https://api.github.com/users/diki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/diki/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":true,"url":"https://api.github.com/repos/diki/eslint","forks_url":"https://api.github.com/repos/diki/eslint/forks","keys_url":"https://api.github.com/repos/diki/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diki/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diki/eslint/teams","hooks_url":"https://api.github.com/repos/diki/eslint/hooks","issue_events_url":"https://api.github.com/repos/diki/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/diki/eslint/events","assignees_url":"https://api.github.com/repos/diki/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/diki/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/diki/eslint/tags","blobs_url":"https://api.github.com/repos/diki/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diki/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diki/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/diki/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diki/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/diki/eslint/languages","stargazers_url":"https://api.github.com/repos/diki/eslint/stargazers","contributors_url":"https://api.github.com/repos/diki/eslint/contributors","subscribers_url":"https://api.github.com/repos/diki/eslint/subscribers","subscription_url":"https://api.github.com/repos/diki/eslint/subscription","commits_url":"https://api.github.com/repos/diki/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/diki/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/diki/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/diki/eslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/diki/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/diki/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diki/eslint/merges","archive_url":"https://api.github.com/repos/diki/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diki/eslint/downloads","issues_url":"https://api.github.com/repos/diki/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/diki/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/diki/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/diki/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diki/eslint/labels{/name}","releases_url":"https://api.github.com/repos/diki/eslint/releases{/id}","deployments_url":"https://api.github.com/repos/diki/eslint/deployments","created_at":"2016-03-05T01:06:45Z","updated_at":"2016-03-05T01:06:50Z","pushed_at":"2016-03-08T14:58:45Z","git_url":"git://github.com/diki/eslint.git","ssh_url":"git@github.com:diki/eslint.git","clone_url":"https://github.com/diki/eslint.git","svn_url":"https://github.com/diki/eslint","homepage":"http://eslint.org","size":9376,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eslint:master","ref":"master","sha":"288d3b27b80f492e5cf32c41a688bafcfc76f6c1","user":{"login":"eslint","id":6019716,"avatar_url":"https://avatars.githubusercontent.com/u/6019716?v=3","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"repo":{"id":11061773,"name":"eslint","full_name":"eslint/eslint","owner":{"login":"eslint","id":6019716,"avatar_url":"https://avatars.githubusercontent.com/u/6019716?v=3","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eslint/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":false,"url":"https://api.github.com/repos/eslint/eslint","forks_url":"https://api.github.com/repos/eslint/eslint/forks","keys_url":"https://api.github.com/repos/eslint/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eslint/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eslint/eslint/teams","hooks_url":"https://api.github.com/repos/eslint/eslint/hooks","issue_events_url":"https://api.github.com/repos/eslint/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/eslint/eslint/events","assignees_url":"https://api.github.com/repos/eslint/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/eslint/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/eslint/eslint/tags","blobs_url":"https://api.github.com/repos/eslint/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eslint/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eslint/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/eslint/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/eslint/eslint/languages","stargazers_url":"https://api.github.com/repos/eslint/eslint/stargazers","contributors_url":"https://api.github.com/repos/eslint/eslint/contributors","subscribers_url":"https://api.github.com/repos/eslint/eslint/subscribers","subscription_url":"https://api.github.com/repos/eslint/eslint/subscription","commits_url":"https://api.github.com/repos/eslint/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/eslint/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/eslint/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/eslint/eslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/eslint/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/eslint/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eslint/eslint/merges","archive_url":"https://api.github.com/repos/eslint/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eslint/eslint/downloads","issues_url":"https://api.github.com/repos/eslint/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/eslint/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/eslint/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/eslint/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eslint/eslint/labels{/name}","releases_url":"https://api.github.com/repos/eslint/eslint/releases{/id}","deployments_url":"https://api.github.com/repos/eslint/eslint/deployments","created_at":"2013-06-29T23:59:48Z","updated_at":"2016-03-09T23:29:44Z","pushed_at":"2016-03-10T01:32:54Z","git_url":"git://github.com/eslint/eslint.git","ssh_url":"git@github.com:eslint/eslint.git","clone_url":"https://github.com/eslint/eslint.git","svn_url":"https://github.com/eslint/eslint","homepage":"http://eslint.org","size":13441,"stargazers_count":4297,"watchers_count":4297,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":850,"mirror_url":null,"open_issues_count":196,"forks":850,"open_issues":196,"watchers":4297,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint/pulls/5512"},"html":{"href":"https://github.com/eslint/eslint/pull/5512"},"issue":{"href":"https://api.github.com/repos/eslint/eslint/issues/5512"},"comments":{"href":"https://api.github.com/repos/eslint/eslint/issues/5512/comments"},"review_comments":{"href":"https://api.github.com/repos/eslint/eslint/pulls/5512/comments"},"review_comment":{"href":"https://api.github.com/repos/eslint/eslint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eslint/eslint/pulls/5512/commits"},"statuses":{"href":"https://api.github.com/repos/eslint/eslint/statuses/03e6869ac8ec7a70a56f0c62220c3c68aa2240c0"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mysticatea","id":1937871,"avatar_url":"https://avatars.githubusercontent.com/u/1937871?v=3","gravatar_id":"","url":"https://api.github.com/users/mysticatea","html_url":"https://github.com/mysticatea","followers_url":"https://api.github.com/users/mysticatea/followers","following_url":"https://api.github.com/users/mysticatea/following{/other_user}","gists_url":"https://api.github.com/users/mysticatea/gists{/gist_id}","starred_url":"https://api.github.com/users/mysticatea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysticatea/subscriptions","organizations_url":"https://api.github.com/users/mysticatea/orgs","repos_url":"https://api.github.com/users/mysticatea/repos","events_url":"https://api.github.com/users/mysticatea/events{/privacy}","received_events_url":"https://api.github.com/users/mysticatea/received_events","type":"User","site_admin":false},"comments":9,"review_comments":0,"commits":1,"additions":18,"deletions":0,"changed_files":2}}