{"action":"created","comment":{"url":"https://api.github.com/repos/rrrene/credo/pulls/comments/71367558","id":71367558,"diff_hunk":"@@ -0,0 +1,51 @@\n+defmodule Credo.Check.Consistency.PatternMatchingAssignment do\n+  @moduledoc \"\"\"\n+  Both left and right pattern matching assigments of Map arguments on function call are valid -","path":"lib/credo/check/consistency/pattern_matching_assignment.ex","position":3,"original_position":3,"commit_id":"7c178cc94951f2c34af4ed2daf8159d6d682fcc5","original_commit_id":"7c178cc94951f2c34af4ed2daf8159d6d682fcc5","user":{"login":"slavaZim","id":16554145,"avatar_url":"https://avatars.githubusercontent.com/u/16554145?v=3","gravatar_id":"","url":"https://api.github.com/users/slavaZim","html_url":"https://github.com/slavaZim","followers_url":"https://api.github.com/users/slavaZim/followers","following_url":"https://api.github.com/users/slavaZim/following{/other_user}","gists_url":"https://api.github.com/users/slavaZim/gists{/gist_id}","starred_url":"https://api.github.com/users/slavaZim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavaZim/subscriptions","organizations_url":"https://api.github.com/users/slavaZim/orgs","repos_url":"https://api.github.com/users/slavaZim/repos","events_url":"https://api.github.com/users/slavaZim/events{/privacy}","received_events_url":"https://api.github.com/users/slavaZim/received_events","type":"User","site_admin":false},"body":"Hi. `def my_fun(:signup = action)` This one confuses me. Why do I assign variable to value I already know?","created_at":"2016-07-19T15:54:56Z","updated_at":"2016-07-19T15:54:56Z","html_url":"https://github.com/rrrene/credo/pull/130#discussion_r71367558","pull_request_url":"https://api.github.com/repos/rrrene/credo/pulls/130","_links":{"self":{"href":"https://api.github.com/repos/rrrene/credo/pulls/comments/71367558"},"html":{"href":"https://github.com/rrrene/credo/pull/130#discussion_r71367558"},"pull_request":{"href":"https://api.github.com/repos/rrrene/credo/pulls/130"}}},"pull_request":{"url":"https://api.github.com/repos/rrrene/credo/pulls/130","id":77725825,"html_url":"https://github.com/rrrene/credo/pull/130","diff_url":"https://github.com/rrrene/credo/pull/130.diff","patch_url":"https://github.com/rrrene/credo/pull/130.patch","issue_url":"https://api.github.com/repos/rrrene/credo/issues/130","number":130,"state":"open","locked":false,"title":"add map assignment feature","user":{"login":"slavaZim","id":16554145,"avatar_url":"https://avatars.githubusercontent.com/u/16554145?v=3","gravatar_id":"","url":"https://api.github.com/users/slavaZim","html_url":"https://github.com/slavaZim","followers_url":"https://api.github.com/users/slavaZim/followers","following_url":"https://api.github.com/users/slavaZim/following{/other_user}","gists_url":"https://api.github.com/users/slavaZim/gists{/gist_id}","starred_url":"https://api.github.com/users/slavaZim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavaZim/subscriptions","organizations_url":"https://api.github.com/users/slavaZim/orgs","repos_url":"https://api.github.com/users/slavaZim/repos","events_url":"https://api.github.com/users/slavaZim/events{/privacy}","received_events_url":"https://api.github.com/users/slavaZim/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-17T03:49:07Z","updated_at":"2016-07-19T15:54:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c81f5da161fbd7ab5c77443fee29b5dc7226c28","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rrrene/credo/pulls/130/commits","review_comments_url":"https://api.github.com/repos/rrrene/credo/pulls/130/comments","review_comment_url":"https://api.github.com/repos/rrrene/credo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rrrene/credo/issues/130/comments","statuses_url":"https://api.github.com/repos/rrrene/credo/statuses/7c178cc94951f2c34af4ed2daf8159d6d682fcc5","head":{"label":"slavaZim:feature/pm-assignment","ref":"feature/pm-assignment","sha":"7c178cc94951f2c34af4ed2daf8159d6d682fcc5","user":{"login":"slavaZim","id":16554145,"avatar_url":"https://avatars.githubusercontent.com/u/16554145?v=3","gravatar_id":"","url":"https://api.github.com/users/slavaZim","html_url":"https://github.com/slavaZim","followers_url":"https://api.github.com/users/slavaZim/followers","following_url":"https://api.github.com/users/slavaZim/following{/other_user}","gists_url":"https://api.github.com/users/slavaZim/gists{/gist_id}","starred_url":"https://api.github.com/users/slavaZim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavaZim/subscriptions","organizations_url":"https://api.github.com/users/slavaZim/orgs","repos_url":"https://api.github.com/users/slavaZim/repos","events_url":"https://api.github.com/users/slavaZim/events{/privacy}","received_events_url":"https://api.github.com/users/slavaZim/received_events","type":"User","site_admin":false},"repo":{"id":63413191,"name":"credo","full_name":"slavaZim/credo","owner":{"login":"slavaZim","id":16554145,"avatar_url":"https://avatars.githubusercontent.com/u/16554145?v=3","gravatar_id":"","url":"https://api.github.com/users/slavaZim","html_url":"https://github.com/slavaZim","followers_url":"https://api.github.com/users/slavaZim/followers","following_url":"https://api.github.com/users/slavaZim/following{/other_user}","gists_url":"https://api.github.com/users/slavaZim/gists{/gist_id}","starred_url":"https://api.github.com/users/slavaZim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavaZim/subscriptions","organizations_url":"https://api.github.com/users/slavaZim/orgs","repos_url":"https://api.github.com/users/slavaZim/repos","events_url":"https://api.github.com/users/slavaZim/events{/privacy}","received_events_url":"https://api.github.com/users/slavaZim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slavaZim/credo","description":"A static code analysis tool for the Elixir language with a focus on code consistency and teaching.","fork":true,"url":"https://api.github.com/repos/slavaZim/credo","forks_url":"https://api.github.com/repos/slavaZim/credo/forks","keys_url":"https://api.github.com/repos/slavaZim/credo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slavaZim/credo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slavaZim/credo/teams","hooks_url":"https://api.github.com/repos/slavaZim/credo/hooks","issue_events_url":"https://api.github.com/repos/slavaZim/credo/issues/events{/number}","events_url":"https://api.github.com/repos/slavaZim/credo/events","assignees_url":"https://api.github.com/repos/slavaZim/credo/assignees{/user}","branches_url":"https://api.github.com/repos/slavaZim/credo/branches{/branch}","tags_url":"https://api.github.com/repos/slavaZim/credo/tags","blobs_url":"https://api.github.com/repos/slavaZim/credo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slavaZim/credo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slavaZim/credo/git/refs{/sha}","trees_url":"https://api.github.com/repos/slavaZim/credo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slavaZim/credo/statuses/{sha}","languages_url":"https://api.github.com/repos/slavaZim/credo/languages","stargazers_url":"https://api.github.com/repos/slavaZim/credo/stargazers","contributors_url":"https://api.github.com/repos/slavaZim/credo/contributors","subscribers_url":"https://api.github.com/repos/slavaZim/credo/subscribers","subscription_url":"https://api.github.com/repos/slavaZim/credo/subscription","commits_url":"https://api.github.com/repos/slavaZim/credo/commits{/sha}","git_commits_url":"https://api.github.com/repos/slavaZim/credo/git/commits{/sha}","comments_url":"https://api.github.com/repos/slavaZim/credo/comments{/number}","issue_comment_url":"https://api.github.com/repos/slavaZim/credo/issues/comments{/number}","contents_url":"https://api.github.com/repos/slavaZim/credo/contents/{+path}","compare_url":"https://api.github.com/repos/slavaZim/credo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slavaZim/credo/merges","archive_url":"https://api.github.com/repos/slavaZim/credo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slavaZim/credo/downloads","issues_url":"https://api.github.com/repos/slavaZim/credo/issues{/number}","pulls_url":"https://api.github.com/repos/slavaZim/credo/pulls{/number}","milestones_url":"https://api.github.com/repos/slavaZim/credo/milestones{/number}","notifications_url":"https://api.github.com/repos/slavaZim/credo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slavaZim/credo/labels{/name}","releases_url":"https://api.github.com/repos/slavaZim/credo/releases{/id}","deployments_url":"https://api.github.com/repos/slavaZim/credo/deployments","created_at":"2016-07-15T10:17:53Z","updated_at":"2016-07-15T10:17:55Z","pushed_at":"2016-07-17T03:47:53Z","git_url":"git://github.com/slavaZim/credo.git","ssh_url":"git@github.com:slavaZim/credo.git","clone_url":"https://github.com/slavaZim/credo.git","svn_url":"https://github.com/slavaZim/credo","homepage":"http://credo-ci.org/","size":935,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"rrrene:master","ref":"master","sha":"c5a2103b409feb86e602cae6d2ba122e0ee67659","user":{"login":"rrrene","id":311914,"avatar_url":"https://avatars.githubusercontent.com/u/311914?v=3","gravatar_id":"","url":"https://api.github.com/users/rrrene","html_url":"https://github.com/rrrene","followers_url":"https://api.github.com/users/rrrene/followers","following_url":"https://api.github.com/users/rrrene/following{/other_user}","gists_url":"https://api.github.com/users/rrrene/gists{/gist_id}","starred_url":"https://api.github.com/users/rrrene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrrene/subscriptions","organizations_url":"https://api.github.com/users/rrrene/orgs","repos_url":"https://api.github.com/users/rrrene/repos","events_url":"https://api.github.com/users/rrrene/events{/privacy}","received_events_url":"https://api.github.com/users/rrrene/received_events","type":"User","site_admin":false},"repo":{"id":43247111,"name":"credo","full_name":"rrrene/credo","owner":{"login":"rrrene","id":311914,"avatar_url":"https://avatars.githubusercontent.com/u/311914?v=3","gravatar_id":"","url":"https://api.github.com/users/rrrene","html_url":"https://github.com/rrrene","followers_url":"https://api.github.com/users/rrrene/followers","following_url":"https://api.github.com/users/rrrene/following{/other_user}","gists_url":"https://api.github.com/users/rrrene/gists{/gist_id}","starred_url":"https://api.github.com/users/rrrene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrrene/subscriptions","organizations_url":"https://api.github.com/users/rrrene/orgs","repos_url":"https://api.github.com/users/rrrene/repos","events_url":"https://api.github.com/users/rrrene/events{/privacy}","received_events_url":"https://api.github.com/users/rrrene/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rrrene/credo","description":"A static code analysis tool for the Elixir language with a focus on code consistency and teaching.","fork":false,"url":"https://api.github.com/repos/rrrene/credo","forks_url":"https://api.github.com/repos/rrrene/credo/forks","keys_url":"https://api.github.com/repos/rrrene/credo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rrrene/credo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rrrene/credo/teams","hooks_url":"https://api.github.com/repos/rrrene/credo/hooks","issue_events_url":"https://api.github.com/repos/rrrene/credo/issues/events{/number}","events_url":"https://api.github.com/repos/rrrene/credo/events","assignees_url":"https://api.github.com/repos/rrrene/credo/assignees{/user}","branches_url":"https://api.github.com/repos/rrrene/credo/branches{/branch}","tags_url":"https://api.github.com/repos/rrrene/credo/tags","blobs_url":"https://api.github.com/repos/rrrene/credo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rrrene/credo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rrrene/credo/git/refs{/sha}","trees_url":"https://api.github.com/repos/rrrene/credo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rrrene/credo/statuses/{sha}","languages_url":"https://api.github.com/repos/rrrene/credo/languages","stargazers_url":"https://api.github.com/repos/rrrene/credo/stargazers","contributors_url":"https://api.github.com/repos/rrrene/credo/contributors","subscribers_url":"https://api.github.com/repos/rrrene/credo/subscribers","subscription_url":"https://api.github.com/repos/rrrene/credo/subscription","commits_url":"https://api.github.com/repos/rrrene/credo/commits{/sha}","git_commits_url":"https://api.github.com/repos/rrrene/credo/git/commits{/sha}","comments_url":"https://api.github.com/repos/rrrene/credo/comments{/number}","issue_comment_url":"https://api.github.com/repos/rrrene/credo/issues/comments{/number}","contents_url":"https://api.github.com/repos/rrrene/credo/contents/{+path}","compare_url":"https://api.github.com/repos/rrrene/credo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rrrene/credo/merges","archive_url":"https://api.github.com/repos/rrrene/credo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rrrene/credo/downloads","issues_url":"https://api.github.com/repos/rrrene/credo/issues{/number}","pulls_url":"https://api.github.com/repos/rrrene/credo/pulls{/number}","milestones_url":"https://api.github.com/repos/rrrene/credo/milestones{/number}","notifications_url":"https://api.github.com/repos/rrrene/credo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rrrene/credo/labels{/name}","releases_url":"https://api.github.com/repos/rrrene/credo/releases{/id}","deployments_url":"https://api.github.com/repos/rrrene/credo/deployments","created_at":"2015-09-27T13:16:15Z","updated_at":"2016-07-19T14:54:21Z","pushed_at":"2016-07-18T10:22:51Z","git_url":"git://github.com/rrrene/credo.git","ssh_url":"git@github.com:rrrene/credo.git","clone_url":"https://github.com/rrrene/credo.git","svn_url":"https://github.com/rrrene/credo","homepage":"http://credo-ci.org/","size":943,"stargazers_count":871,"watchers_count":871,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":20,"forks":49,"open_issues":20,"watchers":871,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rrrene/credo/pulls/130"},"html":{"href":"https://github.com/rrrene/credo/pull/130"},"issue":{"href":"https://api.github.com/repos/rrrene/credo/issues/130"},"comments":{"href":"https://api.github.com/repos/rrrene/credo/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/rrrene/credo/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/rrrene/credo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rrrene/credo/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/rrrene/credo/statuses/7c178cc94951f2c34af4ed2daf8159d6d682fcc5"}}}}
{"actor":{"display_login":"slavaZim"}}