{"action":"created","comment":{"url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/comments/45375633","id":45375633,"diff_hunk":"@@ -79,10 +79,18 @@ class TestFilesParser(filesDir: File) {\n \n               comment.trim match {\n                 case IssueWithLineRegex(value) =>\n-                  for {\n-                    IssueWithLine(severityStr, line, patternId) <- Json.parse(value).asOpt[IssueWithLine]\n-                    severity <- ResultLevel.values.find(_.toString.startsWith(severityStr))\n-                  } yield TestFileResult(patternId, line, severity)\n+                  Try {\n+                    for {\n+                      IssueWithLine(severityStr, line, patternId) <- Json.parse(value).asOpt[IssueWithLine]\n+                      severity <- ResultLevel.values.find(_.toString.startsWith(severityStr))\n+                    } yield TestFileResult(patternId, line, severity)\n+                  } match {","path":"src/main/scala/codacy/plugins/test/TestFilesParser.scala","position":26,"original_position":26,"commit_id":"a089c7b63a986d31ded10eb28f536aed1680888d","original_commit_id":"a089c7b63a986d31ded10eb28f536aed1680888d","user":{"login":"mrfyda","id":593860,"avatar_url":"https://avatars.githubusercontent.com/u/593860?v=3","gravatar_id":"","url":"https://api.github.com/users/mrfyda","html_url":"https://github.com/mrfyda","followers_url":"https://api.github.com/users/mrfyda/followers","following_url":"https://api.github.com/users/mrfyda/following{/other_user}","gists_url":"https://api.github.com/users/mrfyda/gists{/gist_id}","starred_url":"https://api.github.com/users/mrfyda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrfyda/subscriptions","organizations_url":"https://api.github.com/users/mrfyda/orgs","repos_url":"https://api.github.com/users/mrfyda/repos","events_url":"https://api.github.com/users/mrfyda/events{/privacy}","received_events_url":"https://api.github.com/users/mrfyda/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/versioned/images/favicon.png) Issue found: [Default case not specified.](https://www.codacy.com/app/Codacy/codacy-plugins-test/file/1364015748/issues/source?bid=2836238&fileBranchId=2974430#l87)","created_at":"2015-11-19T17:56:41Z","updated_at":"2015-11-19T17:56:41Z","html_url":"https://github.com/codacy/codacy-plugins-test/pull/8#discussion_r45375633","pull_request_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/comments/45375633"},"html":{"href":"https://github.com/codacy/codacy-plugins-test/pull/8#discussion_r45375633"},"pull_request":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/8","id":51239464,"html_url":"https://github.com/codacy/codacy-plugins-test/pull/8","diff_url":"https://github.com/codacy/codacy-plugins-test/pull/8.diff","patch_url":"https://github.com/codacy/codacy-plugins-test/pull/8.patch","issue_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/8","number":8,"state":"open","locked":false,"title":"Fix tests error message when failing to parse Issues","user":{"login":"machadoit","id":13315199,"avatar_url":"https://avatars.githubusercontent.com/u/13315199?v=3","gravatar_id":"","url":"https://api.github.com/users/machadoit","html_url":"https://github.com/machadoit","followers_url":"https://api.github.com/users/machadoit/followers","following_url":"https://api.github.com/users/machadoit/following{/other_user}","gists_url":"https://api.github.com/users/machadoit/gists{/gist_id}","starred_url":"https://api.github.com/users/machadoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machadoit/subscriptions","organizations_url":"https://api.github.com/users/machadoit/orgs","repos_url":"https://api.github.com/users/machadoit/repos","events_url":"https://api.github.com/users/machadoit/events{/privacy}","received_events_url":"https://api.github.com/users/machadoit/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-19T15:47:25Z","updated_at":"2015-11-19T17:56:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5b9af0b847702afad0cef942539f2695645a621","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/8/commits","review_comments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/8/comments","review_comment_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/8/comments","statuses_url":"https://api.github.com/repos/codacy/codacy-plugins-test/statuses/a089c7b63a986d31ded10eb28f536aed1680888d","head":{"label":"codacy:fix-issue-parser","ref":"fix-issue-parser","sha":"a089c7b63a986d31ded10eb28f536aed1680888d","user":{"login":"codacy","id":1834093,"avatar_url":"https://avatars.githubusercontent.com/u/1834093?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy","html_url":"https://github.com/codacy","followers_url":"https://api.github.com/users/codacy/followers","following_url":"https://api.github.com/users/codacy/following{/other_user}","gists_url":"https://api.github.com/users/codacy/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy/subscriptions","organizations_url":"https://api.github.com/users/codacy/orgs","repos_url":"https://api.github.com/users/codacy/repos","events_url":"https://api.github.com/users/codacy/events{/privacy}","received_events_url":"https://api.github.com/users/codacy/received_events","type":"Organization","site_admin":false},"repo":{"id":39913866,"name":"codacy-plugins-test","full_name":"codacy/codacy-plugins-test","owner":{"login":"codacy","id":1834093,"avatar_url":"https://avatars.githubusercontent.com/u/1834093?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy","html_url":"https://github.com/codacy","followers_url":"https://api.github.com/users/codacy/followers","following_url":"https://api.github.com/users/codacy/following{/other_user}","gists_url":"https://api.github.com/users/codacy/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy/subscriptions","organizations_url":"https://api.github.com/users/codacy/orgs","repos_url":"https://api.github.com/users/codacy/repos","events_url":"https://api.github.com/users/codacy/events{/privacy}","received_events_url":"https://api.github.com/users/codacy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codacy/codacy-plugins-test","description":"Testing interface for external docker tools","fork":false,"url":"https://api.github.com/repos/codacy/codacy-plugins-test","forks_url":"https://api.github.com/repos/codacy/codacy-plugins-test/forks","keys_url":"https://api.github.com/repos/codacy/codacy-plugins-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codacy/codacy-plugins-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codacy/codacy-plugins-test/teams","hooks_url":"https://api.github.com/repos/codacy/codacy-plugins-test/hooks","issue_events_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/events{/number}","events_url":"https://api.github.com/repos/codacy/codacy-plugins-test/events","assignees_url":"https://api.github.com/repos/codacy/codacy-plugins-test/assignees{/user}","branches_url":"https://api.github.com/repos/codacy/codacy-plugins-test/branches{/branch}","tags_url":"https://api.github.com/repos/codacy/codacy-plugins-test/tags","blobs_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codacy/codacy-plugins-test/statuses/{sha}","languages_url":"https://api.github.com/repos/codacy/codacy-plugins-test/languages","stargazers_url":"https://api.github.com/repos/codacy/codacy-plugins-test/stargazers","contributors_url":"https://api.github.com/repos/codacy/codacy-plugins-test/contributors","subscribers_url":"https://api.github.com/repos/codacy/codacy-plugins-test/subscribers","subscription_url":"https://api.github.com/repos/codacy/codacy-plugins-test/subscription","commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/codacy/codacy-plugins-test/contents/{+path}","compare_url":"https://api.github.com/repos/codacy/codacy-plugins-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codacy/codacy-plugins-test/merges","archive_url":"https://api.github.com/repos/codacy/codacy-plugins-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codacy/codacy-plugins-test/downloads","issues_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues{/number}","pulls_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls{/number}","milestones_url":"https://api.github.com/repos/codacy/codacy-plugins-test/milestones{/number}","notifications_url":"https://api.github.com/repos/codacy/codacy-plugins-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codacy/codacy-plugins-test/labels{/name}","releases_url":"https://api.github.com/repos/codacy/codacy-plugins-test/releases{/id}","created_at":"2015-07-29T20:09:49Z","updated_at":"2015-09-08T17:32:02Z","pushed_at":"2015-11-19T15:47:25Z","git_url":"git://github.com/codacy/codacy-plugins-test.git","ssh_url":"git@github.com:codacy/codacy-plugins-test.git","clone_url":"https://github.com/codacy/codacy-plugins-test.git","svn_url":"https://github.com/codacy/codacy-plugins-test","homepage":"","size":41,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"codacy:master","ref":"master","sha":"3cfa534e8cbbdf7057534769def9bf44c09ed3b1","user":{"login":"codacy","id":1834093,"avatar_url":"https://avatars.githubusercontent.com/u/1834093?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy","html_url":"https://github.com/codacy","followers_url":"https://api.github.com/users/codacy/followers","following_url":"https://api.github.com/users/codacy/following{/other_user}","gists_url":"https://api.github.com/users/codacy/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy/subscriptions","organizations_url":"https://api.github.com/users/codacy/orgs","repos_url":"https://api.github.com/users/codacy/repos","events_url":"https://api.github.com/users/codacy/events{/privacy}","received_events_url":"https://api.github.com/users/codacy/received_events","type":"Organization","site_admin":false},"repo":{"id":39913866,"name":"codacy-plugins-test","full_name":"codacy/codacy-plugins-test","owner":{"login":"codacy","id":1834093,"avatar_url":"https://avatars.githubusercontent.com/u/1834093?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy","html_url":"https://github.com/codacy","followers_url":"https://api.github.com/users/codacy/followers","following_url":"https://api.github.com/users/codacy/following{/other_user}","gists_url":"https://api.github.com/users/codacy/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy/subscriptions","organizations_url":"https://api.github.com/users/codacy/orgs","repos_url":"https://api.github.com/users/codacy/repos","events_url":"https://api.github.com/users/codacy/events{/privacy}","received_events_url":"https://api.github.com/users/codacy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codacy/codacy-plugins-test","description":"Testing interface for external docker tools","fork":false,"url":"https://api.github.com/repos/codacy/codacy-plugins-test","forks_url":"https://api.github.com/repos/codacy/codacy-plugins-test/forks","keys_url":"https://api.github.com/repos/codacy/codacy-plugins-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codacy/codacy-plugins-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codacy/codacy-plugins-test/teams","hooks_url":"https://api.github.com/repos/codacy/codacy-plugins-test/hooks","issue_events_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/events{/number}","events_url":"https://api.github.com/repos/codacy/codacy-plugins-test/events","assignees_url":"https://api.github.com/repos/codacy/codacy-plugins-test/assignees{/user}","branches_url":"https://api.github.com/repos/codacy/codacy-plugins-test/branches{/branch}","tags_url":"https://api.github.com/repos/codacy/codacy-plugins-test/tags","blobs_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codacy/codacy-plugins-test/statuses/{sha}","languages_url":"https://api.github.com/repos/codacy/codacy-plugins-test/languages","stargazers_url":"https://api.github.com/repos/codacy/codacy-plugins-test/stargazers","contributors_url":"https://api.github.com/repos/codacy/codacy-plugins-test/contributors","subscribers_url":"https://api.github.com/repos/codacy/codacy-plugins-test/subscribers","subscription_url":"https://api.github.com/repos/codacy/codacy-plugins-test/subscription","commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/codacy/codacy-plugins-test/contents/{+path}","compare_url":"https://api.github.com/repos/codacy/codacy-plugins-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codacy/codacy-plugins-test/merges","archive_url":"https://api.github.com/repos/codacy/codacy-plugins-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codacy/codacy-plugins-test/downloads","issues_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues{/number}","pulls_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls{/number}","milestones_url":"https://api.github.com/repos/codacy/codacy-plugins-test/milestones{/number}","notifications_url":"https://api.github.com/repos/codacy/codacy-plugins-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codacy/codacy-plugins-test/labels{/name}","releases_url":"https://api.github.com/repos/codacy/codacy-plugins-test/releases{/id}","created_at":"2015-07-29T20:09:49Z","updated_at":"2015-09-08T17:32:02Z","pushed_at":"2015-11-19T15:47:25Z","git_url":"git://github.com/codacy/codacy-plugins-test.git","ssh_url":"git@github.com:codacy/codacy-plugins-test.git","clone_url":"https://github.com/codacy/codacy-plugins-test.git","svn_url":"https://github.com/codacy/codacy-plugins-test","homepage":"","size":41,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/8"},"html":{"href":"https://github.com/codacy/codacy-plugins-test/pull/8"},"issue":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/8"},"comments":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/statuses/a089c7b63a986d31ded10eb28f536aed1680888d"}}}}