{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/dominikh/go-staticcheck/pulls/8","id":75105067,"html_url":"https://github.com/dominikh/go-staticcheck/pull/8","diff_url":"https://github.com/dominikh/go-staticcheck/pull/8.diff","patch_url":"https://github.com/dominikh/go-staticcheck/pull/8.patch","issue_url":"https://api.github.com/repos/dominikh/go-staticcheck/issues/8","number":8,"state":"open","locked":false,"title":"Check for pointer value pointer and related bad copy attempts","user":{"login":"bradleyfalzon","id":1834577,"avatar_url":"https://avatars.githubusercontent.com/u/1834577?v=3","gravatar_id":"","url":"https://api.github.com/users/bradleyfalzon","html_url":"https://github.com/bradleyfalzon","followers_url":"https://api.github.com/users/bradleyfalzon/followers","following_url":"https://api.github.com/users/bradleyfalzon/following{/other_user}","gists_url":"https://api.github.com/users/bradleyfalzon/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleyfalzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleyfalzon/subscriptions","organizations_url":"https://api.github.com/users/bradleyfalzon/orgs","repos_url":"https://api.github.com/users/bradleyfalzon/repos","events_url":"https://api.github.com/users/bradleyfalzon/events{/privacy}","received_events_url":"https://api.github.com/users/bradleyfalzon/received_events","type":"User","site_admin":false},"body":"I, and I've seen another case, where attempts have been made to make a copy of a variable, such as a pointer, but doing a `original := &T{}; copy := &*original`, this is usually a mistake.\r\n\r\nI've checked the following against ~2000 open source projects but did not find any matches, but also did not find any false positives, so I'm reasonably confident with the tests.\r\n\r\nNote, I've called this pointer value pointer, for lack of a better term, more than happy to rename to something more appropriate.","created_at":"2016-06-24T12:12:16Z","updated_at":"2016-06-24T12:12:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dominikh/go-staticcheck/pulls/8/commits","review_comments_url":"https://api.github.com/repos/dominikh/go-staticcheck/pulls/8/comments","review_comment_url":"https://api.github.com/repos/dominikh/go-staticcheck/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dominikh/go-staticcheck/issues/8/comments","statuses_url":"https://api.github.com/repos/dominikh/go-staticcheck/statuses/5691cb9abc91fbb64d3195b1438e313d4b3eaca0","head":{"label":"bradleyfalzon:pvp","ref":"pvp","sha":"5691cb9abc91fbb64d3195b1438e313d4b3eaca0","user":{"login":"bradleyfalzon","id":1834577,"avatar_url":"https://avatars.githubusercontent.com/u/1834577?v=3","gravatar_id":"","url":"https://api.github.com/users/bradleyfalzon","html_url":"https://github.com/bradleyfalzon","followers_url":"https://api.github.com/users/bradleyfalzon/followers","following_url":"https://api.github.com/users/bradleyfalzon/following{/other_user}","gists_url":"https://api.github.com/users/bradleyfalzon/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleyfalzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleyfalzon/subscriptions","organizations_url":"https://api.github.com/users/bradleyfalzon/orgs","repos_url":"https://api.github.com/users/bradleyfalzon/repos","events_url":"https://api.github.com/users/bradleyfalzon/events{/privacy}","received_events_url":"https://api.github.com/users/bradleyfalzon/received_events","type":"User","site_admin":false},"repo":{"id":61710295,"name":"go-staticcheck","full_name":"bradleyfalzon/go-staticcheck","owner":{"login":"bradleyfalzon","id":1834577,"avatar_url":"https://avatars.githubusercontent.com/u/1834577?v=3","gravatar_id":"","url":"https://api.github.com/users/bradleyfalzon","html_url":"https://github.com/bradleyfalzon","followers_url":"https://api.github.com/users/bradleyfalzon/followers","following_url":"https://api.github.com/users/bradleyfalzon/following{/other_user}","gists_url":"https://api.github.com/users/bradleyfalzon/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleyfalzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleyfalzon/subscriptions","organizations_url":"https://api.github.com/users/bradleyfalzon/orgs","repos_url":"https://api.github.com/users/bradleyfalzon/repos","events_url":"https://api.github.com/users/bradleyfalzon/events{/privacy}","received_events_url":"https://api.github.com/users/bradleyfalzon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bradleyfalzon/go-staticcheck","description":"Staticcheck is a tool for statically checking the inputs to certain functions, such as regexp.Compile","fork":true,"url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck","forks_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/forks","keys_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/teams","hooks_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/hooks","issue_events_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/issues/events{/number}","events_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/events","assignees_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/assignees{/user}","branches_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/branches{/branch}","tags_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/tags","blobs_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/git/refs{/sha}","trees_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/statuses/{sha}","languages_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/languages","stargazers_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/stargazers","contributors_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/contributors","subscribers_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/subscribers","subscription_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/subscription","commits_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/commits{/sha}","git_commits_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/git/commits{/sha}","comments_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/comments{/number}","issue_comment_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/issues/comments{/number}","contents_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/contents/{+path}","compare_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/merges","archive_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/downloads","issues_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/issues{/number}","pulls_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/pulls{/number}","milestones_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/milestones{/number}","notifications_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/labels{/name}","releases_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/releases{/id}","deployments_url":"https://api.github.com/repos/bradleyfalzon/go-staticcheck/deployments","created_at":"2016-06-22T10:26:52Z","updated_at":"2016-06-22T10:26:53Z","pushed_at":"2016-06-24T12:08:40Z","git_url":"git://github.com/bradleyfalzon/go-staticcheck.git","ssh_url":"git@github.com:bradleyfalzon/go-staticcheck.git","clone_url":"https://github.com/bradleyfalzon/go-staticcheck.git","svn_url":"https://github.com/bradleyfalzon/go-staticcheck","homepage":"","size":57,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"dominikh:master","ref":"master","sha":"20a66dd9f09ec71703ab4debedebf780a9e3cdec","user":{"login":"dominikh","id":39825,"avatar_url":"https://avatars.githubusercontent.com/u/39825?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikh","html_url":"https://github.com/dominikh","followers_url":"https://api.github.com/users/dominikh/followers","following_url":"https://api.github.com/users/dominikh/following{/other_user}","gists_url":"https://api.github.com/users/dominikh/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikh/subscriptions","organizations_url":"https://api.github.com/users/dominikh/orgs","repos_url":"https://api.github.com/users/dominikh/repos","events_url":"https://api.github.com/users/dominikh/events{/privacy}","received_events_url":"https://api.github.com/users/dominikh/received_events","type":"User","site_admin":false},"repo":{"id":55308508,"name":"go-staticcheck","full_name":"dominikh/go-staticcheck","owner":{"login":"dominikh","id":39825,"avatar_url":"https://avatars.githubusercontent.com/u/39825?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikh","html_url":"https://github.com/dominikh","followers_url":"https://api.github.com/users/dominikh/followers","following_url":"https://api.github.com/users/dominikh/following{/other_user}","gists_url":"https://api.github.com/users/dominikh/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikh/subscriptions","organizations_url":"https://api.github.com/users/dominikh/orgs","repos_url":"https://api.github.com/users/dominikh/repos","events_url":"https://api.github.com/users/dominikh/events{/privacy}","received_events_url":"https://api.github.com/users/dominikh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dominikh/go-staticcheck","description":"Staticcheck is a tool for statically checking the inputs to certain functions, such as regexp.Compile","fork":false,"url":"https://api.github.com/repos/dominikh/go-staticcheck","forks_url":"https://api.github.com/repos/dominikh/go-staticcheck/forks","keys_url":"https://api.github.com/repos/dominikh/go-staticcheck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dominikh/go-staticcheck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dominikh/go-staticcheck/teams","hooks_url":"https://api.github.com/repos/dominikh/go-staticcheck/hooks","issue_events_url":"https://api.github.com/repos/dominikh/go-staticcheck/issues/events{/number}","events_url":"https://api.github.com/repos/dominikh/go-staticcheck/events","assignees_url":"https://api.github.com/repos/dominikh/go-staticcheck/assignees{/user}","branches_url":"https://api.github.com/repos/dominikh/go-staticcheck/branches{/branch}","tags_url":"https://api.github.com/repos/dominikh/go-staticcheck/tags","blobs_url":"https://api.github.com/repos/dominikh/go-staticcheck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dominikh/go-staticcheck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dominikh/go-staticcheck/git/refs{/sha}","trees_url":"https://api.github.com/repos/dominikh/go-staticcheck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dominikh/go-staticcheck/statuses/{sha}","languages_url":"https://api.github.com/repos/dominikh/go-staticcheck/languages","stargazers_url":"https://api.github.com/repos/dominikh/go-staticcheck/stargazers","contributors_url":"https://api.github.com/repos/dominikh/go-staticcheck/contributors","subscribers_url":"https://api.github.com/repos/dominikh/go-staticcheck/subscribers","subscription_url":"https://api.github.com/repos/dominikh/go-staticcheck/subscription","commits_url":"https://api.github.com/repos/dominikh/go-staticcheck/commits{/sha}","git_commits_url":"https://api.github.com/repos/dominikh/go-staticcheck/git/commits{/sha}","comments_url":"https://api.github.com/repos/dominikh/go-staticcheck/comments{/number}","issue_comment_url":"https://api.github.com/repos/dominikh/go-staticcheck/issues/comments{/number}","contents_url":"https://api.github.com/repos/dominikh/go-staticcheck/contents/{+path}","compare_url":"https://api.github.com/repos/dominikh/go-staticcheck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dominikh/go-staticcheck/merges","archive_url":"https://api.github.com/repos/dominikh/go-staticcheck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dominikh/go-staticcheck/downloads","issues_url":"https://api.github.com/repos/dominikh/go-staticcheck/issues{/number}","pulls_url":"https://api.github.com/repos/dominikh/go-staticcheck/pulls{/number}","milestones_url":"https://api.github.com/repos/dominikh/go-staticcheck/milestones{/number}","notifications_url":"https://api.github.com/repos/dominikh/go-staticcheck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dominikh/go-staticcheck/labels{/name}","releases_url":"https://api.github.com/repos/dominikh/go-staticcheck/releases{/id}","deployments_url":"https://api.github.com/repos/dominikh/go-staticcheck/deployments","created_at":"2016-04-02T17:55:32Z","updated_at":"2016-06-24T11:36:06Z","pushed_at":"2016-06-24T12:12:16Z","git_url":"git://github.com/dominikh/go-staticcheck.git","ssh_url":"git@github.com:dominikh/go-staticcheck.git","clone_url":"https://github.com/dominikh/go-staticcheck.git","svn_url":"https://github.com/dominikh/go-staticcheck","homepage":"","size":57,"stargazers_count":127,"watchers_count":127,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":127,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dominikh/go-staticcheck/pulls/8"},"html":{"href":"https://github.com/dominikh/go-staticcheck/pull/8"},"issue":{"href":"https://api.github.com/repos/dominikh/go-staticcheck/issues/8"},"comments":{"href":"https://api.github.com/repos/dominikh/go-staticcheck/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/dominikh/go-staticcheck/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/dominikh/go-staticcheck/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dominikh/go-staticcheck/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/dominikh/go-staticcheck/statuses/5691cb9abc91fbb64d3195b1438e313d4b3eaca0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":64,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"bradleyfalzon"}}