{"action":"created","comment":{"url":"https://api.github.com/repos/gojp/goreportcard/pulls/comments/158897922","pull_request_review_id":85767017,"id":158897922,"diff_hunk":"@@ -11,8 +11,7 @@ import (\n )\n \n const (\n-\trepoBucket string = \"repos\"\n-\tmetaBucket string = \"meta\"","path":"tools/scores/init_repo_scores.go","position":5,"original_position":5,"commit_id":"f45c9f4ee4cdb6e3883c452123f1d84ccdcdb9af","original_commit_id":"f45c9f4ee4cdb6e3883c452123f1d84ccdcdb9af","user":{"login":"tariq1890","id":2658224,"avatar_url":"https://avatars1.githubusercontent.com/u/2658224?v=4","gravatar_id":"","url":"https://api.github.com/users/tariq1890","html_url":"https://github.com/tariq1890","followers_url":"https://api.github.com/users/tariq1890/followers","following_url":"https://api.github.com/users/tariq1890/following{/other_user}","gists_url":"https://api.github.com/users/tariq1890/gists{/gist_id}","starred_url":"https://api.github.com/users/tariq1890/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tariq1890/subscriptions","organizations_url":"https://api.github.com/users/tariq1890/orgs","repos_url":"https://api.github.com/users/tariq1890/repos","events_url":"https://api.github.com/users/tariq1890/events{/privacy}","received_events_url":"https://api.github.com/users/tariq1890/received_events","type":"User","site_admin":false},"body":"It's an unused variable.","created_at":"2017-12-28T05:08:23Z","updated_at":"2017-12-28T05:08:23Z","html_url":"https://github.com/gojp/goreportcard/pull/236#discussion_r158897922","pull_request_url":"https://api.github.com/repos/gojp/goreportcard/pulls/236","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/gojp/goreportcard/pulls/comments/158897922"},"html":{"href":"https://github.com/gojp/goreportcard/pull/236#discussion_r158897922"},"pull_request":{"href":"https://api.github.com/repos/gojp/goreportcard/pulls/236"}},"in_reply_to_id":158893829},"pull_request":{"url":"https://api.github.com/repos/gojp/goreportcard/pulls/236","id":160328006,"html_url":"https://github.com/gojp/goreportcard/pull/236","diff_url":"https://github.com/gojp/goreportcard/pull/236.diff","patch_url":"https://github.com/gojp/goreportcard/pull/236.patch","issue_url":"https://api.github.com/repos/gojp/goreportcard/issues/236","number":236,"state":"open","locked":false,"title":"Fixing megacheck issues reported by gometalinter","user":{"login":"tariq1890","id":2658224,"avatar_url":"https://avatars1.githubusercontent.com/u/2658224?v=4","gravatar_id":"","url":"https://api.github.com/users/tariq1890","html_url":"https://github.com/tariq1890","followers_url":"https://api.github.com/users/tariq1890/followers","following_url":"https://api.github.com/users/tariq1890/following{/other_user}","gists_url":"https://api.github.com/users/tariq1890/gists{/gist_id}","starred_url":"https://api.github.com/users/tariq1890/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tariq1890/subscriptions","organizations_url":"https://api.github.com/users/tariq1890/orgs","repos_url":"https://api.github.com/users/tariq1890/repos","events_url":"https://api.github.com/users/tariq1890/events{/privacy}","received_events_url":"https://api.github.com/users/tariq1890/received_events","type":"User","site_admin":false},"body":"Fixes the following issues reported : \r\n\r\n> check/utils.go:375:25:warning: HasSuffix is a pure function but its return value is ignored (SA4017) (megacheck)\r\n> download/download.go:86:3:warning: this value of err is never used (SA4006) (megacheck)\r\n> handlers/about.go:14:2:warning: redundant return statement (S1023) (megacheck)\r\n> handlers/badge.go:52:10:warning: the argument is already a string, there's no need to use fmt.Sprintf (S1025) (megacheck)\r\n> handlers/check.go:54:2:warning: redundant return statement (S1023) (megacheck)\r\n> handlers/check.go:100:2:warning: 'if err != nil { return err }; return nil' can be simplified to 'return err' (S1013) (megacheck)\r\n> handlers/check.go:159:2:warning: 'if err != nil { return err }; return nil' can be simplified to 'return err' (S1013) (megacheck)\r\n> tools/clean-repos/main.go:29:8:warning: should use time.Since instead of time.Now().Sub (S1012) (megacheck)\r\n> tools/db/manage_db.go:60:3:warning: 'if err != nil { return err }; return nil' can be simplified to 'return err' (S1013) (megacheck)\r\n> tools/db/manage_db.go:60:3:warning: 'if err != nil { return err }; return nil' can be simplified to 'return err' (S1013) (megacheck)\r\n> tools/db/manage_db.go:113:20:warning: should omit comparison to bool constant, can be simplified to !*listDupes (S1002) (megacheck)\r\n> tools/names/migrate_repo_names.go:79:3:warning: 'if err != nil { return err }; return nil' can be simplified to 'return err' (S1013) (megacheck)\r\n> tools/scores/init_repo_scores.go:15:2:warning: const metaBucket is unused (U1000) (megacheck)\r\n","created_at":"2017-12-28T03:10:27Z","updated_at":"2017-12-28T05:08:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84e276ad0fc268c45ddb7ecc28d54890ddee1cac","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/gojp/goreportcard/pulls/236/commits","review_comments_url":"https://api.github.com/repos/gojp/goreportcard/pulls/236/comments","review_comment_url":"https://api.github.com/repos/gojp/goreportcard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gojp/goreportcard/issues/236/comments","statuses_url":"https://api.github.com/repos/gojp/goreportcard/statuses/f45c9f4ee4cdb6e3883c452123f1d84ccdcdb9af","head":{"label":"tariq1890:master","ref":"master","sha":"f45c9f4ee4cdb6e3883c452123f1d84ccdcdb9af","user":{"login":"tariq1890","id":2658224,"avatar_url":"https://avatars1.githubusercontent.com/u/2658224?v=4","gravatar_id":"","url":"https://api.github.com/users/tariq1890","html_url":"https://github.com/tariq1890","followers_url":"https://api.github.com/users/tariq1890/followers","following_url":"https://api.github.com/users/tariq1890/following{/other_user}","gists_url":"https://api.github.com/users/tariq1890/gists{/gist_id}","starred_url":"https://api.github.com/users/tariq1890/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tariq1890/subscriptions","organizations_url":"https://api.github.com/users/tariq1890/orgs","repos_url":"https://api.github.com/users/tariq1890/repos","events_url":"https://api.github.com/users/tariq1890/events{/privacy}","received_events_url":"https://api.github.com/users/tariq1890/received_events","type":"User","site_admin":false},"repo":{"id":99067022,"name":"goreportcard","full_name":"tariq1890/goreportcard","owner":{"login":"tariq1890","id":2658224,"avatar_url":"https://avatars1.githubusercontent.com/u/2658224?v=4","gravatar_id":"","url":"https://api.github.com/users/tariq1890","html_url":"https://github.com/tariq1890","followers_url":"https://api.github.com/users/tariq1890/followers","following_url":"https://api.github.com/users/tariq1890/following{/other_user}","gists_url":"https://api.github.com/users/tariq1890/gists{/gist_id}","starred_url":"https://api.github.com/users/tariq1890/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tariq1890/subscriptions","organizations_url":"https://api.github.com/users/tariq1890/orgs","repos_url":"https://api.github.com/users/tariq1890/repos","events_url":"https://api.github.com/users/tariq1890/events{/privacy}","received_events_url":"https://api.github.com/users/tariq1890/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tariq1890/goreportcard","description":"A report card for your Go application","fork":true,"url":"https://api.github.com/repos/tariq1890/goreportcard","forks_url":"https://api.github.com/repos/tariq1890/goreportcard/forks","keys_url":"https://api.github.com/repos/tariq1890/goreportcard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tariq1890/goreportcard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tariq1890/goreportcard/teams","hooks_url":"https://api.github.com/repos/tariq1890/goreportcard/hooks","issue_events_url":"https://api.github.com/repos/tariq1890/goreportcard/issues/events{/number}","events_url":"https://api.github.com/repos/tariq1890/goreportcard/events","assignees_url":"https://api.github.com/repos/tariq1890/goreportcard/assignees{/user}","branches_url":"https://api.github.com/repos/tariq1890/goreportcard/branches{/branch}","tags_url":"https://api.github.com/repos/tariq1890/goreportcard/tags","blobs_url":"https://api.github.com/repos/tariq1890/goreportcard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tariq1890/goreportcard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tariq1890/goreportcard/git/refs{/sha}","trees_url":"https://api.github.com/repos/tariq1890/goreportcard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tariq1890/goreportcard/statuses/{sha}","languages_url":"https://api.github.com/repos/tariq1890/goreportcard/languages","stargazers_url":"https://api.github.com/repos/tariq1890/goreportcard/stargazers","contributors_url":"https://api.github.com/repos/tariq1890/goreportcard/contributors","subscribers_url":"https://api.github.com/repos/tariq1890/goreportcard/subscribers","subscription_url":"https://api.github.com/repos/tariq1890/goreportcard/subscription","commits_url":"https://api.github.com/repos/tariq1890/goreportcard/commits{/sha}","git_commits_url":"https://api.github.com/repos/tariq1890/goreportcard/git/commits{/sha}","comments_url":"https://api.github.com/repos/tariq1890/goreportcard/comments{/number}","issue_comment_url":"https://api.github.com/repos/tariq1890/goreportcard/issues/comments{/number}","contents_url":"https://api.github.com/repos/tariq1890/goreportcard/contents/{+path}","compare_url":"https://api.github.com/repos/tariq1890/goreportcard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tariq1890/goreportcard/merges","archive_url":"https://api.github.com/repos/tariq1890/goreportcard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tariq1890/goreportcard/downloads","issues_url":"https://api.github.com/repos/tariq1890/goreportcard/issues{/number}","pulls_url":"https://api.github.com/repos/tariq1890/goreportcard/pulls{/number}","milestones_url":"https://api.github.com/repos/tariq1890/goreportcard/milestones{/number}","notifications_url":"https://api.github.com/repos/tariq1890/goreportcard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tariq1890/goreportcard/labels{/name}","releases_url":"https://api.github.com/repos/tariq1890/goreportcard/releases{/id}","deployments_url":"https://api.github.com/repos/tariq1890/goreportcard/deployments","created_at":"2017-08-02T03:14:24Z","updated_at":"2017-08-02T03:14:26Z","pushed_at":"2017-12-28T03:09:01Z","git_url":"git://github.com/tariq1890/goreportcard.git","ssh_url":"git@github.com:tariq1890/goreportcard.git","clone_url":"https://github.com/tariq1890/goreportcard.git","svn_url":"https://github.com/tariq1890/goreportcard","homepage":"https://goreportcard.com","size":5410,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gojp:master","ref":"master","sha":"9e7b523c43d86db45e8cbc6a1d7be4653135dfa9","user":{"login":"gojp","id":5365998,"avatar_url":"https://avatars2.githubusercontent.com/u/5365998?v=4","gravatar_id":"","url":"https://api.github.com/users/gojp","html_url":"https://github.com/gojp","followers_url":"https://api.github.com/users/gojp/followers","following_url":"https://api.github.com/users/gojp/following{/other_user}","gists_url":"https://api.github.com/users/gojp/gists{/gist_id}","starred_url":"https://api.github.com/users/gojp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gojp/subscriptions","organizations_url":"https://api.github.com/users/gojp/orgs","repos_url":"https://api.github.com/users/gojp/repos","events_url":"https://api.github.com/users/gojp/events{/privacy}","received_events_url":"https://api.github.com/users/gojp/received_events","type":"Organization","site_admin":false},"repo":{"id":30025542,"name":"goreportcard","full_name":"gojp/goreportcard","owner":{"login":"gojp","id":5365998,"avatar_url":"https://avatars2.githubusercontent.com/u/5365998?v=4","gravatar_id":"","url":"https://api.github.com/users/gojp","html_url":"https://github.com/gojp","followers_url":"https://api.github.com/users/gojp/followers","following_url":"https://api.github.com/users/gojp/following{/other_user}","gists_url":"https://api.github.com/users/gojp/gists{/gist_id}","starred_url":"https://api.github.com/users/gojp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gojp/subscriptions","organizations_url":"https://api.github.com/users/gojp/orgs","repos_url":"https://api.github.com/users/gojp/repos","events_url":"https://api.github.com/users/gojp/events{/privacy}","received_events_url":"https://api.github.com/users/gojp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gojp/goreportcard","description":"A report card for your Go application","fork":false,"url":"https://api.github.com/repos/gojp/goreportcard","forks_url":"https://api.github.com/repos/gojp/goreportcard/forks","keys_url":"https://api.github.com/repos/gojp/goreportcard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gojp/goreportcard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gojp/goreportcard/teams","hooks_url":"https://api.github.com/repos/gojp/goreportcard/hooks","issue_events_url":"https://api.github.com/repos/gojp/goreportcard/issues/events{/number}","events_url":"https://api.github.com/repos/gojp/goreportcard/events","assignees_url":"https://api.github.com/repos/gojp/goreportcard/assignees{/user}","branches_url":"https://api.github.com/repos/gojp/goreportcard/branches{/branch}","tags_url":"https://api.github.com/repos/gojp/goreportcard/tags","blobs_url":"https://api.github.com/repos/gojp/goreportcard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gojp/goreportcard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gojp/goreportcard/git/refs{/sha}","trees_url":"https://api.github.com/repos/gojp/goreportcard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gojp/goreportcard/statuses/{sha}","languages_url":"https://api.github.com/repos/gojp/goreportcard/languages","stargazers_url":"https://api.github.com/repos/gojp/goreportcard/stargazers","contributors_url":"https://api.github.com/repos/gojp/goreportcard/contributors","subscribers_url":"https://api.github.com/repos/gojp/goreportcard/subscribers","subscription_url":"https://api.github.com/repos/gojp/goreportcard/subscription","commits_url":"https://api.github.com/repos/gojp/goreportcard/commits{/sha}","git_commits_url":"https://api.github.com/repos/gojp/goreportcard/git/commits{/sha}","comments_url":"https://api.github.com/repos/gojp/goreportcard/comments{/number}","issue_comment_url":"https://api.github.com/repos/gojp/goreportcard/issues/comments{/number}","contents_url":"https://api.github.com/repos/gojp/goreportcard/contents/{+path}","compare_url":"https://api.github.com/repos/gojp/goreportcard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gojp/goreportcard/merges","archive_url":"https://api.github.com/repos/gojp/goreportcard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gojp/goreportcard/downloads","issues_url":"https://api.github.com/repos/gojp/goreportcard/issues{/number}","pulls_url":"https://api.github.com/repos/gojp/goreportcard/pulls{/number}","milestones_url":"https://api.github.com/repos/gojp/goreportcard/milestones{/number}","notifications_url":"https://api.github.com/repos/gojp/goreportcard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gojp/goreportcard/labels{/name}","releases_url":"https://api.github.com/repos/gojp/goreportcard/releases{/id}","deployments_url":"https://api.github.com/repos/gojp/goreportcard/deployments","created_at":"2015-01-29T15:07:37Z","updated_at":"2017-12-28T04:09:26Z","pushed_at":"2017-12-28T03:10:28Z","git_url":"git://github.com/gojp/goreportcard.git","ssh_url":"git@github.com:gojp/goreportcard.git","clone_url":"https://github.com/gojp/goreportcard.git","svn_url":"https://github.com/gojp/goreportcard","homepage":"https://goreportcard.com","size":5416,"stargazers_count":596,"watchers_count":596,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":89,"mirror_url":null,"archived":false,"open_issues_count":41,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":89,"open_issues":41,"watchers":596,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gojp/goreportcard/pulls/236"},"html":{"href":"https://github.com/gojp/goreportcard/pull/236"},"issue":{"href":"https://api.github.com/repos/gojp/goreportcard/issues/236"},"comments":{"href":"https://api.github.com/repos/gojp/goreportcard/issues/236/comments"},"review_comments":{"href":"https://api.github.com/repos/gojp/goreportcard/pulls/236/comments"},"review_comment":{"href":"https://api.github.com/repos/gojp/goreportcard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gojp/goreportcard/pulls/236/commits"},"statuses":{"href":"https://api.github.com/repos/gojp/goreportcard/statuses/f45c9f4ee4cdb6e3883c452123f1d84ccdcdb9af"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"tariq1890"}}