{"action":"created","comment":{"url":"https://api.github.com/repos/coala/coala/pulls/comments/88782478","pull_request_review_id":9348138,"id":88782478,"diff_hunk":"@@ -57,6 +57,40 @@ def _prepare_options(options):\n \n         options[\"output_regex\"] = re.compile(options[\"output_regex\"])\n \n+        supported_names = {\n+            'origin',\n+            'message',\n+            'severity',\n+            'line',\n+            'column',\n+            'end_line',\n+            'end_column',\n+            'additional_info'\n+        }\n+\n+        no_of_non_named_groups = options[\"output_regex\"].groups \\\n+        - len(options[\"output_regex\"].groupindex)\n+\n+        unknown_named_capture_groups = 0\n+        known_named_capture_groups = 0\n+","path":"coalib/bearlib/abstractions/Linter.py","position":20,"original_position":20,"commit_id":"1b01d01c6d6710d05998c53f56125bce237bcec0","original_commit_id":"1b01d01c6d6710d05998c53f56125bce237bcec0","user":{"login":"gitmate-bot","id":15421488,"avatar_url":"https://avatars.githubusercontent.com/u/15421488?v=3","gravatar_id":"","url":"https://api.github.com/users/gitmate-bot","html_url":"https://github.com/gitmate-bot","followers_url":"https://api.github.com/users/gitmate-bot/followers","following_url":"https://api.github.com/users/gitmate-bot/following{/other_user}","gists_url":"https://api.github.com/users/gitmate-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/gitmate-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitmate-bot/subscriptions","organizations_url":"https://api.github.com/users/gitmate-bot/orgs","repos_url":"https://api.github.com/users/gitmate-bot/repos","events_url":"https://api.github.com/users/gitmate-bot/events{/privacy}","received_events_url":"https://api.github.com/users/gitmate-bot/received_events","type":"User","site_admin":false},"body":"The code does not comply to PEP8.\n\n*PEP8Bear, severity NORMAL, section `autopep8`.*\n\nThe issue can be fixed by applying the following patch:\n\n```diff\n--- a/coalib/bearlib/abstractions/Linter.py\n+++ b/coalib/bearlib/abstractions/Linter.py\n@@ -69,7 +69,7 @@\n         }\n \n         no_of_non_named_groups = options[\"output_regex\"].groups \\\n-        - len(options[\"output_regex\"].groupindex)\n+            - len(options[\"output_regex\"].groupindex)\n \n         unknown_named_capture_groups = 0\n         known_named_capture_groups = 0\n```","created_at":"2016-11-19T16:29:06Z","updated_at":"2016-11-19T16:29:07Z","html_url":"https://github.com/coala/coala/pull/2895#discussion_r88782478","pull_request_url":"https://api.github.com/repos/coala/coala/pulls/2895","_links":{"self":{"href":"https://api.github.com/repos/coala/coala/pulls/comments/88782478"},"html":{"href":"https://github.com/coala/coala/pull/2895#discussion_r88782478"},"pull_request":{"href":"https://api.github.com/repos/coala/coala/pulls/2895"}}},"pull_request":{"url":"https://api.github.com/repos/coala/coala/pulls/2895","id":90840461,"html_url":"https://github.com/coala/coala/pull/2895","diff_url":"https://github.com/coala/coala/pull/2895.diff","patch_url":"https://github.com/coala/coala/pull/2895.patch","issue_url":"https://api.github.com/repos/coala/coala/issues/2895","number":2895,"state":"open","locked":false,"title":"WIP: Linter: Warn the user to not to use capture groups","user":{"login":"meetmangukiya","id":7620533,"avatar_url":"https://avatars.githubusercontent.com/u/7620533?v=3","gravatar_id":"","url":"https://api.github.com/users/meetmangukiya","html_url":"https://github.com/meetmangukiya","followers_url":"https://api.github.com/users/meetmangukiya/followers","following_url":"https://api.github.com/users/meetmangukiya/following{/other_user}","gists_url":"https://api.github.com/users/meetmangukiya/gists{/gist_id}","starred_url":"https://api.github.com/users/meetmangukiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meetmangukiya/subscriptions","organizations_url":"https://api.github.com/users/meetmangukiya/orgs","repos_url":"https://api.github.com/users/meetmangukiya/repos","events_url":"https://api.github.com/users/meetmangukiya/events{/privacy}","received_events_url":"https://api.github.com/users/meetmangukiya/received_events","type":"User","site_admin":false},"body":"Using capture groups affect the performance of coala, and it should be\ndiscouraged.\n\nFixes https://github.com/coala/coala/issues/2070\n","created_at":"2016-10-25T16:10:28Z","updated_at":"2016-11-19T16:29:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c5cd437fec405e3eaf513bc84fd1a4c7349c3f1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/coala/coala/pulls/2895/commits","review_comments_url":"https://api.github.com/repos/coala/coala/pulls/2895/comments","review_comment_url":"https://api.github.com/repos/coala/coala/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala/coala/issues/2895/comments","statuses_url":"https://api.github.com/repos/coala/coala/statuses/1b01d01c6d6710d05998c53f56125bce237bcec0","head":{"label":"meetmangukiya:capture-groups","ref":"capture-groups","sha":"1b01d01c6d6710d05998c53f56125bce237bcec0","user":{"login":"meetmangukiya","id":7620533,"avatar_url":"https://avatars.githubusercontent.com/u/7620533?v=3","gravatar_id":"","url":"https://api.github.com/users/meetmangukiya","html_url":"https://github.com/meetmangukiya","followers_url":"https://api.github.com/users/meetmangukiya/followers","following_url":"https://api.github.com/users/meetmangukiya/following{/other_user}","gists_url":"https://api.github.com/users/meetmangukiya/gists{/gist_id}","starred_url":"https://api.github.com/users/meetmangukiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meetmangukiya/subscriptions","organizations_url":"https://api.github.com/users/meetmangukiya/orgs","repos_url":"https://api.github.com/users/meetmangukiya/repos","events_url":"https://api.github.com/users/meetmangukiya/events{/privacy}","received_events_url":"https://api.github.com/users/meetmangukiya/received_events","type":"User","site_admin":false},"repo":{"id":67703298,"name":"coala","full_name":"meetmangukiya/coala","owner":{"login":"meetmangukiya","id":7620533,"avatar_url":"https://avatars.githubusercontent.com/u/7620533?v=3","gravatar_id":"","url":"https://api.github.com/users/meetmangukiya","html_url":"https://github.com/meetmangukiya","followers_url":"https://api.github.com/users/meetmangukiya/followers","following_url":"https://api.github.com/users/meetmangukiya/following{/other_user}","gists_url":"https://api.github.com/users/meetmangukiya/gists{/gist_id}","starred_url":"https://api.github.com/users/meetmangukiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meetmangukiya/subscriptions","organizations_url":"https://api.github.com/users/meetmangukiya/orgs","repos_url":"https://api.github.com/users/meetmangukiya/repos","events_url":"https://api.github.com/users/meetmangukiya/events{/privacy}","received_events_url":"https://api.github.com/users/meetmangukiya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meetmangukiya/coala","description":"coala provides a unified command-line interface for linting and fixing all your code, regardless of the programming languages you use.","fork":true,"url":"https://api.github.com/repos/meetmangukiya/coala","forks_url":"https://api.github.com/repos/meetmangukiya/coala/forks","keys_url":"https://api.github.com/repos/meetmangukiya/coala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meetmangukiya/coala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meetmangukiya/coala/teams","hooks_url":"https://api.github.com/repos/meetmangukiya/coala/hooks","issue_events_url":"https://api.github.com/repos/meetmangukiya/coala/issues/events{/number}","events_url":"https://api.github.com/repos/meetmangukiya/coala/events","assignees_url":"https://api.github.com/repos/meetmangukiya/coala/assignees{/user}","branches_url":"https://api.github.com/repos/meetmangukiya/coala/branches{/branch}","tags_url":"https://api.github.com/repos/meetmangukiya/coala/tags","blobs_url":"https://api.github.com/repos/meetmangukiya/coala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meetmangukiya/coala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meetmangukiya/coala/git/refs{/sha}","trees_url":"https://api.github.com/repos/meetmangukiya/coala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meetmangukiya/coala/statuses/{sha}","languages_url":"https://api.github.com/repos/meetmangukiya/coala/languages","stargazers_url":"https://api.github.com/repos/meetmangukiya/coala/stargazers","contributors_url":"https://api.github.com/repos/meetmangukiya/coala/contributors","subscribers_url":"https://api.github.com/repos/meetmangukiya/coala/subscribers","subscription_url":"https://api.github.com/repos/meetmangukiya/coala/subscription","commits_url":"https://api.github.com/repos/meetmangukiya/coala/commits{/sha}","git_commits_url":"https://api.github.com/repos/meetmangukiya/coala/git/commits{/sha}","comments_url":"https://api.github.com/repos/meetmangukiya/coala/comments{/number}","issue_comment_url":"https://api.github.com/repos/meetmangukiya/coala/issues/comments{/number}","contents_url":"https://api.github.com/repos/meetmangukiya/coala/contents/{+path}","compare_url":"https://api.github.com/repos/meetmangukiya/coala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meetmangukiya/coala/merges","archive_url":"https://api.github.com/repos/meetmangukiya/coala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meetmangukiya/coala/downloads","issues_url":"https://api.github.com/repos/meetmangukiya/coala/issues{/number}","pulls_url":"https://api.github.com/repos/meetmangukiya/coala/pulls{/number}","milestones_url":"https://api.github.com/repos/meetmangukiya/coala/milestones{/number}","notifications_url":"https://api.github.com/repos/meetmangukiya/coala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meetmangukiya/coala/labels{/name}","releases_url":"https://api.github.com/repos/meetmangukiya/coala/releases{/id}","deployments_url":"https://api.github.com/repos/meetmangukiya/coala/deployments","created_at":"2016-09-08T12:58:18Z","updated_at":"2016-09-08T12:58:20Z","pushed_at":"2016-11-19T16:28:31Z","git_url":"git://github.com/meetmangukiya/coala.git","ssh_url":"git@github.com:meetmangukiya/coala.git","clone_url":"https://github.com/meetmangukiya/coala.git","svn_url":"https://github.com/meetmangukiya/coala","homepage":"http://coala-analyzer.org/","size":10157,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"coala:master","ref":"master","sha":"494886aa86c193980c39eea6eb3aa2c466cc35f4","user":{"login":"coala","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"repo":{"id":19816973,"name":"coala","full_name":"coala/coala","owner":{"login":"coala","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala/coala","description":"coala provides a unified command-line interface for linting and fixing all your code, regardless of the programming languages you use.","fork":false,"url":"https://api.github.com/repos/coala/coala","forks_url":"https://api.github.com/repos/coala/coala/forks","keys_url":"https://api.github.com/repos/coala/coala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala/coala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala/coala/teams","hooks_url":"https://api.github.com/repos/coala/coala/hooks","issue_events_url":"https://api.github.com/repos/coala/coala/issues/events{/number}","events_url":"https://api.github.com/repos/coala/coala/events","assignees_url":"https://api.github.com/repos/coala/coala/assignees{/user}","branches_url":"https://api.github.com/repos/coala/coala/branches{/branch}","tags_url":"https://api.github.com/repos/coala/coala/tags","blobs_url":"https://api.github.com/repos/coala/coala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala/coala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala/coala/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala/coala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala/coala/statuses/{sha}","languages_url":"https://api.github.com/repos/coala/coala/languages","stargazers_url":"https://api.github.com/repos/coala/coala/stargazers","contributors_url":"https://api.github.com/repos/coala/coala/contributors","subscribers_url":"https://api.github.com/repos/coala/coala/subscribers","subscription_url":"https://api.github.com/repos/coala/coala/subscription","commits_url":"https://api.github.com/repos/coala/coala/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala/coala/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala/coala/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala/coala/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala/coala/contents/{+path}","compare_url":"https://api.github.com/repos/coala/coala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala/coala/merges","archive_url":"https://api.github.com/repos/coala/coala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala/coala/downloads","issues_url":"https://api.github.com/repos/coala/coala/issues{/number}","pulls_url":"https://api.github.com/repos/coala/coala/pulls{/number}","milestones_url":"https://api.github.com/repos/coala/coala/milestones{/number}","notifications_url":"https://api.github.com/repos/coala/coala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala/coala/labels{/name}","releases_url":"https://api.github.com/repos/coala/coala/releases{/id}","deployments_url":"https://api.github.com/repos/coala/coala/deployments","created_at":"2014-05-15T11:35:34Z","updated_at":"2016-11-19T14:20:41Z","pushed_at":"2016-11-19T16:28:31Z","git_url":"git://github.com/coala/coala.git","ssh_url":"git@github.com:coala/coala.git","clone_url":"https://github.com/coala/coala.git","svn_url":"https://github.com/coala/coala","homepage":"https://coala.io/","size":12558,"stargazers_count":793,"watchers_count":793,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":319,"mirror_url":null,"open_issues_count":260,"forks":319,"open_issues":260,"watchers":793,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/coala/pulls/2895"},"html":{"href":"https://github.com/coala/coala/pull/2895"},"issue":{"href":"https://api.github.com/repos/coala/coala/issues/2895"},"comments":{"href":"https://api.github.com/repos/coala/coala/issues/2895/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/coala/pulls/2895/comments"},"review_comment":{"href":"https://api.github.com/repos/coala/coala/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala/coala/pulls/2895/commits"},"statuses":{"href":"https://api.github.com/repos/coala/coala/statuses/1b01d01c6d6710d05998c53f56125bce237bcec0"}}}}
{"actor":{"display_login":"gitmate-bot"}}