payload: {"action":"created","comment":{"url":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls/comments/300041004","pull_request_review_id":257581051,"id":300041004,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwMDA0MTAwNA==","diff_hunk":"@@ -0,0 +1,65 @@\n+package com.jetbrains.snakecharm.lang.validation\n+\n+import com.jetbrains.python.psi.PyKeywordArgument\n+import com.jetbrains.snakecharm.SnakemakeBundle\n+import com.jetbrains.snakecharm.lang.SnakemakeLanguageDialect\n+import com.jetbrains.snakecharm.lang.psi.SMKRule\n+import com.jetbrains.snakecharm.lang.psi.SMKRuleParameterListStatement\n+import com.jetbrains.snakecharm.lang.psi.SMKRuleRunParameter\n+\n+object SnakemakeSyntaxErrorAnnotator : SnakemakeAnnotator() {\n+    override fun visitSMKRuleParameterListStatement(st: SMKRuleParameterListStatement) {\n+        if (!SnakemakeLanguageDialect.isInsideSmkFile(st)) {\n+            return\n+        }\n+\n+        val argumentNamesSet = HashSet<String>()\n+        var encounteredKeywordArgument = false\n+\n+        st.argumentList?.arguments?.forEach {\n+            // check argument name\n+            val name = it.name\n+            if (argumentNamesSet.contains(name)) {","path":"src/main/kotlin/com/jetbrains/snakecharm/lang/validation/SnakemakeSyntaxErrorAnnotator.kt","position":22,"original_position":22,"commit_id":"0967c9b970a07c2f61dc9ef39263f3df1000b0ca","original_commit_id":"59c2e204c7eb26a3b94ef4a522e7c08622ed3fb3","user":{"login":"iromeo","id":72933,"node_id":"MDQ6VXNlcjcyOTMz","avatar_url":"https://avatars3.githubusercontent.com/u/72933?v=4","gravatar_id":"","url":"https://api.github.com/users/iromeo","html_url":"https://github.com/iromeo","followers_url":"https://api.github.com/users/iromeo/followers","following_url":"https://api.github.com/users/iromeo/following{/other_user}","gists_url":"https://api.github.com/users/iromeo/gists{/gist_id}","starred_url":"https://api.github.com/users/iromeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iromeo/subscriptions","organizations_url":"https://api.github.com/users/iromeo/orgs","repos_url":"https://api.github.com/users/iromeo/repos","events_url":"https://api.github.com/users/iromeo/events{/privacy}","received_events_url":"https://api.github.com/users/iromeo/received_events","type":"User","site_admin":false},"body":"Please use `a in b` instead of `b.contains(a)`","created_at":"2019-07-03T16:05:35Z","updated_at":"2019-07-03T16:08:00Z","html_url":"https://github.com/JetBrains-Research/snakecharm/pull/81#discussion_r300041004","pull_request_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls/81","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls/comments/300041004"},"html":{"href":"https://github.com/JetBrains-Research/snakecharm/pull/81#discussion_r300041004"},"pull_request":{"href":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls/81"}},"in_reply_to_id":300040433},"pull_request":{"url":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls/81","id":294172620,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk0MTcyNjIw","html_url":"https://github.com/JetBrains-Research/snakecharm/pull/81","diff_url":"https://github.com/JetBrains-Research/snakecharm/pull/81.diff","patch_url":"https://github.com/JetBrains-Research/snakecharm/pull/81.patch","issue_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/issues/81","number":81,"state":"open","locked":false,"title":"Issue 72","user":{"login":"sharkovadarya","id":12707841,"node_id":"MDQ6VXNlcjEyNzA3ODQx","avatar_url":"https://avatars3.githubusercontent.com/u/12707841?v=4","gravatar_id":"","url":"https://api.github.com/users/sharkovadarya","html_url":"https://github.com/sharkovadarya","followers_url":"https://api.github.com/users/sharkovadarya/followers","following_url":"https://api.github.com/users/sharkovadarya/following{/other_user}","gists_url":"https://api.github.com/users/sharkovadarya/gists{/gist_id}","starred_url":"https://api.github.com/users/sharkovadarya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharkovadarya/subscriptions","organizations_url":"https://api.github.com/users/sharkovadarya/orgs","repos_url":"https://api.github.com/users/sharkovadarya/repos","events_url":"https://api.github.com/users/sharkovadarya/events{/privacy}","received_events_url":"https://api.github.com/users/sharkovadarya/received_events","type":"User","site_admin":false},"body":"Keyword arguments duplication https://github.com/JetBrains-Research/snakecharm/issues/72","created_at":"2019-07-03T13:36:14Z","updated_at":"2019-07-03T16:08:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b788caff07d37088a7698da07de343234b1bc5a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls/81/commits","review_comments_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls/81/comments","review_comment_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/issues/81/comments","statuses_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/statuses/0967c9b970a07c2f61dc9ef39263f3df1000b0ca","head":{"label":"JetBrains-Research:72","ref":"72","sha":"0967c9b970a07c2f61dc9ef39263f3df1000b0ca","user":{"login":"JetBrains-Research","id":10167268,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTY3MjY4","avatar_url":"https://avatars3.githubusercontent.com/u/10167268?v=4","gravatar_id":"","url":"https://api.github.com/users/JetBrains-Research","html_url":"https://github.com/JetBrains-Research","followers_url":"https://api.github.com/users/JetBrains-Research/followers","following_url":"https://api.github.com/users/JetBrains-Research/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains-Research/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains-Research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains-Research/subscriptions","organizations_url":"https://api.github.com/users/JetBrains-Research/orgs","repos_url":"https://api.github.com/users/JetBrains-Research/repos","events_url":"https://api.github.com/users/JetBrains-Research/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains-Research/received_events","type":"Organization","site_admin":false},"repo":{"id":165259818,"node_id":"MDEwOlJlcG9zaXRvcnkxNjUyNTk4MTg=","name":"snakecharm","full_name":"JetBrains-Research/snakecharm","private":false,"owner":{"login":"JetBrains-Research","id":10167268,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTY3MjY4","avatar_url":"https://avatars3.githubusercontent.com/u/10167268?v=4","gravatar_id":"","url":"https://api.github.com/users/JetBrains-Research","html_url":"https://github.com/JetBrains-Research","followers_url":"https://api.github.com/users/JetBrains-Research/followers","following_url":"https://api.github.com/users/JetBrains-Research/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains-Research/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains-Research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains-Research/subscriptions","organizations_url":"https://api.github.com/users/JetBrains-Research/orgs","repos_url":"https://api.github.com/users/JetBrains-Research/repos","events_url":"https://api.github.com/users/JetBrains-Research/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains-Research/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/JetBrains-Research/snakecharm","description":"Plugin for PyCharm / IntelliJ IDEA Platform IDEs which adds support for Snakemake language.","fork":false,"url":"https://api.github.com/repos/JetBrains-Research/snakecharm","forks_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/forks","keys_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/teams","hooks_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/hooks","issue_events_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/issues/events{/number}","events_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/events","assignees_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/assignees{/user}","branches_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/branches{/branch}","tags_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/tags","blobs_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/git/refs{/sha}","trees_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/statuses/{sha}","languages_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/languages","stargazers_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/stargazers","contributors_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/contributors","subscribers_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/subscribers","subscription_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/subscription","commits_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/commits{/sha}","git_commits_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/git/commits{/sha}","comments_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/comments{/number}","issue_comment_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/issues/comments{/number}","contents_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/contents/{+path}","compare_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/merges","archive_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/downloads","issues_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/issues{/number}","pulls_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls{/number}","milestones_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/milestones{/number}","notifications_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/labels{/name}","releases_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/releases{/id}","deployments_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/deployments","created_at":"2019-01-11T14:49:20Z","updated_at":"2019-07-03T13:55:05Z","pushed_at":"2019-07-03T15:12:33Z","git_url":"git://github.com/JetBrains-Research/snakecharm.git","ssh_url":"git@github.com:JetBrains-Research/snakecharm.git","clone_url":"https://github.com/JetBrains-Research/snakecharm.git","svn_url":"https://github.com/JetBrains-Research/snakecharm","homepage":null,"size":718,"stargazers_count":19,"watchers_count":19,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":34,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":34,"watchers":19,"default_branch":"master"}},"base":{"label":"JetBrains-Research:master","ref":"master","sha":"0301be2116c4aa67f0b2f4266730d893468d401f","user":{"login":"JetBrains-Research","id":10167268,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTY3MjY4","avatar_url":"https://avatars3.githubusercontent.com/u/10167268?v=4","gravatar_id":"","url":"https://api.github.com/users/JetBrains-Research","html_url":"https://github.com/JetBrains-Research","followers_url":"https://api.github.com/users/JetBrains-Research/followers","following_url":"https://api.github.com/users/JetBrains-Research/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains-Research/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains-Research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains-Research/subscriptions","organizations_url":"https://api.github.com/users/JetBrains-Research/orgs","repos_url":"https://api.github.com/users/JetBrains-Research/repos","events_url":"https://api.github.com/users/JetBrains-Research/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains-Research/received_events","type":"Organization","site_admin":false},"repo":{"id":165259818,"node_id":"MDEwOlJlcG9zaXRvcnkxNjUyNTk4MTg=","name":"snakecharm","full_name":"JetBrains-Research/snakecharm","private":false,"owner":{"login":"JetBrains-Research","id":10167268,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTY3MjY4","avatar_url":"https://avatars3.githubusercontent.com/u/10167268?v=4","gravatar_id":"","url":"https://api.github.com/users/JetBrains-Research","html_url":"https://github.com/JetBrains-Research","followers_url":"https://api.github.com/users/JetBrains-Research/followers","following_url":"https://api.github.com/users/JetBrains-Research/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains-Research/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains-Research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains-Research/subscriptions","organizations_url":"https://api.github.com/users/JetBrains-Research/orgs","repos_url":"https://api.github.com/users/JetBrains-Research/repos","events_url":"https://api.github.com/users/JetBrains-Research/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains-Research/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/JetBrains-Research/snakecharm","description":"Plugin for PyCharm / IntelliJ IDEA Platform IDEs which adds support for Snakemake language.","fork":false,"url":"https://api.github.com/repos/JetBrains-Research/snakecharm","forks_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/forks","keys_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/teams","hooks_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/hooks","issue_events_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/issues/events{/number}","events_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/events","assignees_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/assignees{/user}","branches_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/branches{/branch}","tags_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/tags","blobs_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/git/refs{/sha}","trees_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/statuses/{sha}","languages_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/languages","stargazers_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/stargazers","contributors_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/contributors","subscribers_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/subscribers","subscription_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/subscription","commits_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/commits{/sha}","git_commits_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/git/commits{/sha}","comments_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/comments{/number}","issue_comment_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/issues/comments{/number}","contents_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/contents/{+path}","compare_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/merges","archive_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/downloads","issues_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/issues{/number}","pulls_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls{/number}","milestones_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/milestones{/number}","notifications_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/labels{/name}","releases_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/releases{/id}","deployments_url":"https://api.github.com/repos/JetBrains-Research/snakecharm/deployments","created_at":"2019-01-11T14:49:20Z","updated_at":"2019-07-03T13:55:05Z","pushed_at":"2019-07-03T15:12:33Z","git_url":"git://github.com/JetBrains-Research/snakecharm.git","ssh_url":"git@github.com:JetBrains-Research/snakecharm.git","clone_url":"https://github.com/JetBrains-Research/snakecharm.git","svn_url":"https://github.com/JetBrains-Research/snakecharm","homepage":null,"size":718,"stargazers_count":19,"watchers_count":19,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":34,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":34,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls/81"},"html":{"href":"https://github.com/JetBrains-Research/snakecharm/pull/81"},"issue":{"href":"https://api.github.com/repos/JetBrains-Research/snakecharm/issues/81"},"comments":{"href":"https://api.github.com/repos/JetBrains-Research/snakecharm/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JetBrains-Research/snakecharm/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/JetBrains-Research/snakecharm/statuses/0967c9b970a07c2f61dc9ef39263f3df1000b0ca"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"iromeo"}}