{"action":"created","comment":{"url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/comments/65657430","id":65657430,"diff_hunk":"@@ -0,0 +1,37 @@\n+import sys\n+import platform\n+\n+from flake8.engine import *\n+\n+from coalib.bearlib.abstractions.Lint import Lint\n+from coalib.bears.LocalBear import LocalBear\n+\n+\n+if platform.system=='Windows':\n+    DEFAULT_CONFIG = os.path.expanduser(r'~\\.flake8')\n+else:\n+    DEFAULT_CONFIG = os.path.join(\n+        os.getenv('XDG_CONFIG_HOME') or os.path.expanduser('~/.config'),\n+        'flake8')\n+\n+class Flake8Bear(Lint, LocalBear):\n+\n+    \"\"\" Checks the code according to pep8 and pyflake8 standards \"\"\"\n+\n+    self.gives_corrected = False","path":"bears/python/Flake8Bear.py","position":21,"original_position":21,"commit_id":"6ff1ff36330e5e495b0f5d0a7b845a1a0bdfa083","original_commit_id":"6ff1ff36330e5e495b0f5d0a7b845a1a0bdfa083","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/bears/python/Flake8Bear.py\n+++ b/bears/python/Flake8Bear.py\n@@ -19,6 +19,7 @@\n     \"\"\" Checks the code according to pep8 and pyflake8 standards \"\"\"\n \n     self.gives_corrected = False\n+\n     def lint(self, filename, file):\n         output_regex = re.compile(r'.*\\.py:(?P<line>\\d):(?P<column>\\d):(?P<message>.*)')\n         flake8_style = get_style_guide(\n```","created_at":"2016-06-03T05:12:59Z","updated_at":"2016-06-03T05:12:59Z","html_url":"https://github.com/coala-analyzer/coala-bears/pull/489#discussion_r65657430","pull_request_url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/489","_links":{"self":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/comments/65657430"},"html":{"href":"https://github.com/coala-analyzer/coala-bears/pull/489#discussion_r65657430"},"pull_request":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/489"}}},"pull_request":{"url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/489","id":72454742,"html_url":"https://github.com/coala-analyzer/coala-bears/pull/489","diff_url":"https://github.com/coala-analyzer/coala-bears/pull/489.diff","patch_url":"https://github.com/coala-analyzer/coala-bears/pull/489.patch","issue_url":"https://api.github.com/repos/coala-analyzer/coala-bears/issues/489","number":489,"state":"open","locked":false,"title":"Flake8: WIP","user":{"login":"srisankethu","id":12644108,"avatar_url":"https://avatars.githubusercontent.com/u/12644108?v=3","gravatar_id":"","url":"https://api.github.com/users/srisankethu","html_url":"https://github.com/srisankethu","followers_url":"https://api.github.com/users/srisankethu/followers","following_url":"https://api.github.com/users/srisankethu/following{/other_user}","gists_url":"https://api.github.com/users/srisankethu/gists{/gist_id}","starred_url":"https://api.github.com/users/srisankethu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srisankethu/subscriptions","organizations_url":"https://api.github.com/users/srisankethu/orgs","repos_url":"https://api.github.com/users/srisankethu/repos","events_url":"https://api.github.com/users/srisankethu/events{/privacy}","received_events_url":"https://api.github.com/users/srisankethu/received_events","type":"User","site_admin":false},"body":"Need to add tests. Sorry i am doing an internship so i have been kinda busy. @Adrianzatreanu ","created_at":"2016-06-03T05:12:18Z","updated_at":"2016-06-03T05:12:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ed733dfac4b790dc769b0f626987478d72cb8d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/489/commits","review_comments_url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/489/comments","review_comment_url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala-analyzer/coala-bears/issues/489/comments","statuses_url":"https://api.github.com/repos/coala-analyzer/coala-bears/statuses/6ff1ff36330e5e495b0f5d0a7b845a1a0bdfa083","head":{"label":"srisankethu:master","ref":"master","sha":"6ff1ff36330e5e495b0f5d0a7b845a1a0bdfa083","user":{"login":"srisankethu","id":12644108,"avatar_url":"https://avatars.githubusercontent.com/u/12644108?v=3","gravatar_id":"","url":"https://api.github.com/users/srisankethu","html_url":"https://github.com/srisankethu","followers_url":"https://api.github.com/users/srisankethu/followers","following_url":"https://api.github.com/users/srisankethu/following{/other_user}","gists_url":"https://api.github.com/users/srisankethu/gists{/gist_id}","starred_url":"https://api.github.com/users/srisankethu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srisankethu/subscriptions","organizations_url":"https://api.github.com/users/srisankethu/orgs","repos_url":"https://api.github.com/users/srisankethu/repos","events_url":"https://api.github.com/users/srisankethu/events{/privacy}","received_events_url":"https://api.github.com/users/srisankethu/received_events","type":"User","site_admin":false},"repo":{"id":53469591,"name":"coala-bears","full_name":"srisankethu/coala-bears","owner":{"login":"srisankethu","id":12644108,"avatar_url":"https://avatars.githubusercontent.com/u/12644108?v=3","gravatar_id":"","url":"https://api.github.com/users/srisankethu","html_url":"https://github.com/srisankethu","followers_url":"https://api.github.com/users/srisankethu/followers","following_url":"https://api.github.com/users/srisankethu/following{/other_user}","gists_url":"https://api.github.com/users/srisankethu/gists{/gist_id}","starred_url":"https://api.github.com/users/srisankethu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srisankethu/subscriptions","organizations_url":"https://api.github.com/users/srisankethu/orgs","repos_url":"https://api.github.com/users/srisankethu/repos","events_url":"https://api.github.com/users/srisankethu/events{/privacy}","received_events_url":"https://api.github.com/users/srisankethu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/srisankethu/coala-bears","description":"Bears for coala","fork":true,"url":"https://api.github.com/repos/srisankethu/coala-bears","forks_url":"https://api.github.com/repos/srisankethu/coala-bears/forks","keys_url":"https://api.github.com/repos/srisankethu/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/srisankethu/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/srisankethu/coala-bears/teams","hooks_url":"https://api.github.com/repos/srisankethu/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/srisankethu/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/srisankethu/coala-bears/events","assignees_url":"https://api.github.com/repos/srisankethu/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/srisankethu/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/srisankethu/coala-bears/tags","blobs_url":"https://api.github.com/repos/srisankethu/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/srisankethu/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/srisankethu/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/srisankethu/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/srisankethu/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/srisankethu/coala-bears/languages","stargazers_url":"https://api.github.com/repos/srisankethu/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/srisankethu/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/srisankethu/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/srisankethu/coala-bears/subscription","commits_url":"https://api.github.com/repos/srisankethu/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/srisankethu/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/srisankethu/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/srisankethu/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/srisankethu/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/srisankethu/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/srisankethu/coala-bears/merges","archive_url":"https://api.github.com/repos/srisankethu/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/srisankethu/coala-bears/downloads","issues_url":"https://api.github.com/repos/srisankethu/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/srisankethu/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/srisankethu/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/srisankethu/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/srisankethu/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/srisankethu/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/srisankethu/coala-bears/deployments","created_at":"2016-03-09T05:02:33Z","updated_at":"2016-03-09T05:02:34Z","pushed_at":"2016-06-03T05:09:13Z","git_url":"git://github.com/srisankethu/coala-bears.git","ssh_url":"git@github.com:srisankethu/coala-bears.git","clone_url":"https://github.com/srisankethu/coala-bears.git","svn_url":"https://github.com/srisankethu/coala-bears","homepage":"http://coala-analyzer.org/","size":475,"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-analyzer:master","ref":"master","sha":"1e9b3d7f9c0301811a437aed366507c491d40f4f","user":{"login":"coala-analyzer","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala-analyzer","html_url":"https://github.com/coala-analyzer","followers_url":"https://api.github.com/users/coala-analyzer/followers","following_url":"https://api.github.com/users/coala-analyzer/following{/other_user}","gists_url":"https://api.github.com/users/coala-analyzer/gists{/gist_id}","starred_url":"https://api.github.com/users/coala-analyzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala-analyzer/subscriptions","organizations_url":"https://api.github.com/users/coala-analyzer/orgs","repos_url":"https://api.github.com/users/coala-analyzer/repos","events_url":"https://api.github.com/users/coala-analyzer/events{/privacy}","received_events_url":"https://api.github.com/users/coala-analyzer/received_events","type":"Organization","site_admin":false},"repo":{"id":51688289,"name":"coala-bears","full_name":"coala-analyzer/coala-bears","owner":{"login":"coala-analyzer","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala-analyzer","html_url":"https://github.com/coala-analyzer","followers_url":"https://api.github.com/users/coala-analyzer/followers","following_url":"https://api.github.com/users/coala-analyzer/following{/other_user}","gists_url":"https://api.github.com/users/coala-analyzer/gists{/gist_id}","starred_url":"https://api.github.com/users/coala-analyzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala-analyzer/subscriptions","organizations_url":"https://api.github.com/users/coala-analyzer/orgs","repos_url":"https://api.github.com/users/coala-analyzer/repos","events_url":"https://api.github.com/users/coala-analyzer/events{/privacy}","received_events_url":"https://api.github.com/users/coala-analyzer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala-analyzer/coala-bears","description":"Bears for coala","fork":false,"url":"https://api.github.com/repos/coala-analyzer/coala-bears","forks_url":"https://api.github.com/repos/coala-analyzer/coala-bears/forks","keys_url":"https://api.github.com/repos/coala-analyzer/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala-analyzer/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala-analyzer/coala-bears/teams","hooks_url":"https://api.github.com/repos/coala-analyzer/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/coala-analyzer/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/coala-analyzer/coala-bears/events","assignees_url":"https://api.github.com/repos/coala-analyzer/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/coala-analyzer/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/coala-analyzer/coala-bears/tags","blobs_url":"https://api.github.com/repos/coala-analyzer/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala-analyzer/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala-analyzer/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala-analyzer/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala-analyzer/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/coala-analyzer/coala-bears/languages","stargazers_url":"https://api.github.com/repos/coala-analyzer/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/coala-analyzer/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/coala-analyzer/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/coala-analyzer/coala-bears/subscription","commits_url":"https://api.github.com/repos/coala-analyzer/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala-analyzer/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala-analyzer/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala-analyzer/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala-analyzer/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/coala-analyzer/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala-analyzer/coala-bears/merges","archive_url":"https://api.github.com/repos/coala-analyzer/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala-analyzer/coala-bears/downloads","issues_url":"https://api.github.com/repos/coala-analyzer/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/coala-analyzer/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/coala-analyzer/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala-analyzer/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/coala-analyzer/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/coala-analyzer/coala-bears/deployments","created_at":"2016-02-14T09:25:11Z","updated_at":"2016-05-31T23:09:27Z","pushed_at":"2016-06-03T05:12:18Z","git_url":"git://github.com/coala-analyzer/coala-bears.git","ssh_url":"git@github.com:coala-analyzer/coala-bears.git","clone_url":"https://github.com/coala-analyzer/coala-bears.git","svn_url":"https://github.com/coala-analyzer/coala-bears","homepage":"http://coala-analyzer.org/","size":622,"stargazers_count":43,"watchers_count":43,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":112,"forks":49,"open_issues":112,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/489"},"html":{"href":"https://github.com/coala-analyzer/coala-bears/pull/489"},"issue":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/issues/489"},"comments":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/issues/489/comments"},"review_comments":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/489/comments"},"review_comment":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/489/commits"},"statuses":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/statuses/6ff1ff36330e5e495b0f5d0a7b845a1a0bdfa083"}}}}
{"actor":{"display_login":"gitmate-bot"}}