{"action":"created","comment":{"url":"https://api.github.com/repos/hartwigmedical/health-checks/pulls/comments/68719565","id":68719565,"diff_hunk":"@@ -0,0 +1,59 @@\n+package com.hartwig.healthchecks.smitty.reader;\n+\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.assertNotNull;\n+\n+import java.io.FileNotFoundException;\n+import java.io.IOException;\n+import java.net.URL;\n+import java.nio.file.NoSuchFileException;\n+import java.util.List;\n+\n+import org.junit.Test;\n+\n+import com.google.common.io.Resources;\n+\n+public class KinshipReaderTest {\n+\n+    private static final String WRONG_NUM_LINES = \"Wrong # of Lines\";\n+\n+    private static final String NOT_NULL = \"Should Not Be null\";\n+\n+    private static final String TEST_DIR = \"rundir\";\n+\n+    private static final String EMPTY_DIR = \"emptyFiles\";\n+\n+    private static final String NO_FILE_DIR = \"empty\";\n+\n+    @Test\n+    public void readKinship() throws IOException {\n+        final URL exampleFlagStatURL = Resources.getResource(TEST_DIR);\n+        final KinshipReader kinshipReader = new KinshipReader();\n+        final List<String> readLines = kinshipReader.readLinesFromKinship(exampleFlagStatURL.getPath());\n+        assertNotNull(NOT_NULL, readLines);\n+        final int EXPECTED_NUM_LINES = 4;","path":"smitty/src/test/java/com/hartwig/healthchecks/smitty/reader/KinshipReaderTest.java","position":34,"original_position":34,"commit_id":"a0e92f4f4adcef4502ffbe61bd492086ff7d36a4","original_commit_id":"a0e92f4f4adcef4502ffbe61bd492086ff7d36a4","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Avoid using final local variables, turn them into fields](https://www.codacy.com/app/hmf/health-checks/file/2855952306/issues/source?bid=3363458&fileBranchId=3390068#l34)","created_at":"2016-06-28T08:49:48Z","updated_at":"2016-06-28T08:49:48Z","html_url":"https://github.com/hartwigmedical/health-checks/pull/50#discussion_r68719565","pull_request_url":"https://api.github.com/repos/hartwigmedical/health-checks/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/hartwigmedical/health-checks/pulls/comments/68719565"},"html":{"href":"https://github.com/hartwigmedical/health-checks/pull/50#discussion_r68719565"},"pull_request":{"href":"https://api.github.com/repos/hartwigmedical/health-checks/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/hartwigmedical/health-checks/pulls/50","id":75439557,"html_url":"https://github.com/hartwigmedical/health-checks/pull/50","diff_url":"https://github.com/hartwigmedical/health-checks/pull/50.diff","patch_url":"https://github.com/hartwigmedical/health-checks/pull/50.patch","issue_url":"https://api.github.com/repos/hartwigmedical/health-checks/issues/50","number":50,"state":"open","locked":false,"title":"Adding Code for kinship file reading;","user":{"login":"nhelsherif","id":370663,"avatar_url":"https://avatars.githubusercontent.com/u/370663?v=3","gravatar_id":"","url":"https://api.github.com/users/nhelsherif","html_url":"https://github.com/nhelsherif","followers_url":"https://api.github.com/users/nhelsherif/followers","following_url":"https://api.github.com/users/nhelsherif/following{/other_user}","gists_url":"https://api.github.com/users/nhelsherif/gists{/gist_id}","starred_url":"https://api.github.com/users/nhelsherif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhelsherif/subscriptions","organizations_url":"https://api.github.com/users/nhelsherif/orgs","repos_url":"https://api.github.com/users/nhelsherif/repos","events_url":"https://api.github.com/users/nhelsherif/events{/privacy}","received_events_url":"https://api.github.com/users/nhelsherif/received_events","type":"User","site_admin":false},"body":" - Adding file reader and test\r\n - Adding a new module\r\n\r\n@wilderrodrigues ping","created_at":"2016-06-28T08:48:06Z","updated_at":"2016-06-28T08:49:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ef61979c4b3c552c209898b300ff24f9e8628c1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hartwigmedical/health-checks/pulls/50/commits","review_comments_url":"https://api.github.com/repos/hartwigmedical/health-checks/pulls/50/comments","review_comment_url":"https://api.github.com/repos/hartwigmedical/health-checks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hartwigmedical/health-checks/issues/50/comments","statuses_url":"https://api.github.com/repos/hartwigmedical/health-checks/statuses/a0e92f4f4adcef4502ffbe61bd492086ff7d36a4","head":{"label":"hartwigmedical:tech/smittyModule","ref":"tech/smittyModule","sha":"a0e92f4f4adcef4502ffbe61bd492086ff7d36a4","user":{"login":"hartwigmedical","id":16318013,"avatar_url":"https://avatars.githubusercontent.com/u/16318013?v=3","gravatar_id":"","url":"https://api.github.com/users/hartwigmedical","html_url":"https://github.com/hartwigmedical","followers_url":"https://api.github.com/users/hartwigmedical/followers","following_url":"https://api.github.com/users/hartwigmedical/following{/other_user}","gists_url":"https://api.github.com/users/hartwigmedical/gists{/gist_id}","starred_url":"https://api.github.com/users/hartwigmedical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartwigmedical/subscriptions","organizations_url":"https://api.github.com/users/hartwigmedical/orgs","repos_url":"https://api.github.com/users/hartwigmedical/repos","events_url":"https://api.github.com/users/hartwigmedical/events{/privacy}","received_events_url":"https://api.github.com/users/hartwigmedical/received_events","type":"Organization","site_admin":false},"repo":{"id":60243866,"name":"health-checks","full_name":"hartwigmedical/health-checks","owner":{"login":"hartwigmedical","id":16318013,"avatar_url":"https://avatars.githubusercontent.com/u/16318013?v=3","gravatar_id":"","url":"https://api.github.com/users/hartwigmedical","html_url":"https://github.com/hartwigmedical","followers_url":"https://api.github.com/users/hartwigmedical/followers","following_url":"https://api.github.com/users/hartwigmedical/following{/other_user}","gists_url":"https://api.github.com/users/hartwigmedical/gists{/gist_id}","starred_url":"https://api.github.com/users/hartwigmedical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartwigmedical/subscriptions","organizations_url":"https://api.github.com/users/hartwigmedical/orgs","repos_url":"https://api.github.com/users/hartwigmedical/repos","events_url":"https://api.github.com/users/hartwigmedical/events{/privacy}","received_events_url":"https://api.github.com/users/hartwigmedical/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hartwigmedical/health-checks","description":"This is a placeholder for the HMF Health Checks project.","fork":false,"url":"https://api.github.com/repos/hartwigmedical/health-checks","forks_url":"https://api.github.com/repos/hartwigmedical/health-checks/forks","keys_url":"https://api.github.com/repos/hartwigmedical/health-checks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hartwigmedical/health-checks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hartwigmedical/health-checks/teams","hooks_url":"https://api.github.com/repos/hartwigmedical/health-checks/hooks","issue_events_url":"https://api.github.com/repos/hartwigmedical/health-checks/issues/events{/number}","events_url":"https://api.github.com/repos/hartwigmedical/health-checks/events","assignees_url":"https://api.github.com/repos/hartwigmedical/health-checks/assignees{/user}","branches_url":"https://api.github.com/repos/hartwigmedical/health-checks/branches{/branch}","tags_url":"https://api.github.com/repos/hartwigmedical/health-checks/tags","blobs_url":"https://api.github.com/repos/hartwigmedical/health-checks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hartwigmedical/health-checks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hartwigmedical/health-checks/git/refs{/sha}","trees_url":"https://api.github.com/repos/hartwigmedical/health-checks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hartwigmedical/health-checks/statuses/{sha}","languages_url":"https://api.github.com/repos/hartwigmedical/health-checks/languages","stargazers_url":"https://api.github.com/repos/hartwigmedical/health-checks/stargazers","contributors_url":"https://api.github.com/repos/hartwigmedical/health-checks/contributors","subscribers_url":"https://api.github.com/repos/hartwigmedical/health-checks/subscribers","subscription_url":"https://api.github.com/repos/hartwigmedical/health-checks/subscription","commits_url":"https://api.github.com/repos/hartwigmedical/health-checks/commits{/sha}","git_commits_url":"https://api.github.com/repos/hartwigmedical/health-checks/git/commits{/sha}","comments_url":"https://api.github.com/repos/hartwigmedical/health-checks/comments{/number}","issue_comment_url":"https://api.github.com/repos/hartwigmedical/health-checks/issues/comments{/number}","contents_url":"https://api.github.com/repos/hartwigmedical/health-checks/contents/{+path}","compare_url":"https://api.github.com/repos/hartwigmedical/health-checks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hartwigmedical/health-checks/merges","archive_url":"https://api.github.com/repos/hartwigmedical/health-checks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hartwigmedical/health-checks/downloads","issues_url":"https://api.github.com/repos/hartwigmedical/health-checks/issues{/number}","pulls_url":"https://api.github.com/repos/hartwigmedical/health-checks/pulls{/number}","milestones_url":"https://api.github.com/repos/hartwigmedical/health-checks/milestones{/number}","notifications_url":"https://api.github.com/repos/hartwigmedical/health-checks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hartwigmedical/health-checks/labels{/name}","releases_url":"https://api.github.com/repos/hartwigmedical/health-checks/releases{/id}","deployments_url":"https://api.github.com/repos/hartwigmedical/health-checks/deployments","created_at":"2016-06-02T07:54:11Z","updated_at":"2016-06-08T08:34:39Z","pushed_at":"2016-06-28T08:48:06Z","git_url":"git://github.com/hartwigmedical/health-checks.git","ssh_url":"git@github.com:hartwigmedical/health-checks.git","clone_url":"https://github.com/hartwigmedical/health-checks.git","svn_url":"https://github.com/hartwigmedical/health-checks","homepage":null,"size":729,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"hartwigmedical:master","ref":"master","sha":"68632fe9f4348707e4361e1996ed6e5a4a375cfb","user":{"login":"hartwigmedical","id":16318013,"avatar_url":"https://avatars.githubusercontent.com/u/16318013?v=3","gravatar_id":"","url":"https://api.github.com/users/hartwigmedical","html_url":"https://github.com/hartwigmedical","followers_url":"https://api.github.com/users/hartwigmedical/followers","following_url":"https://api.github.com/users/hartwigmedical/following{/other_user}","gists_url":"https://api.github.com/users/hartwigmedical/gists{/gist_id}","starred_url":"https://api.github.com/users/hartwigmedical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartwigmedical/subscriptions","organizations_url":"https://api.github.com/users/hartwigmedical/orgs","repos_url":"https://api.github.com/users/hartwigmedical/repos","events_url":"https://api.github.com/users/hartwigmedical/events{/privacy}","received_events_url":"https://api.github.com/users/hartwigmedical/received_events","type":"Organization","site_admin":false},"repo":{"id":60243866,"name":"health-checks","full_name":"hartwigmedical/health-checks","owner":{"login":"hartwigmedical","id":16318013,"avatar_url":"https://avatars.githubusercontent.com/u/16318013?v=3","gravatar_id":"","url":"https://api.github.com/users/hartwigmedical","html_url":"https://github.com/hartwigmedical","followers_url":"https://api.github.com/users/hartwigmedical/followers","following_url":"https://api.github.com/users/hartwigmedical/following{/other_user}","gists_url":"https://api.github.com/users/hartwigmedical/gists{/gist_id}","starred_url":"https://api.github.com/users/hartwigmedical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartwigmedical/subscriptions","organizations_url":"https://api.github.com/users/hartwigmedical/orgs","repos_url":"https://api.github.com/users/hartwigmedical/repos","events_url":"https://api.github.com/users/hartwigmedical/events{/privacy}","received_events_url":"https://api.github.com/users/hartwigmedical/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hartwigmedical/health-checks","description":"This is a placeholder for the HMF Health Checks project.","fork":false,"url":"https://api.github.com/repos/hartwigmedical/health-checks","forks_url":"https://api.github.com/repos/hartwigmedical/health-checks/forks","keys_url":"https://api.github.com/repos/hartwigmedical/health-checks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hartwigmedical/health-checks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hartwigmedical/health-checks/teams","hooks_url":"https://api.github.com/repos/hartwigmedical/health-checks/hooks","issue_events_url":"https://api.github.com/repos/hartwigmedical/health-checks/issues/events{/number}","events_url":"https://api.github.com/repos/hartwigmedical/health-checks/events","assignees_url":"https://api.github.com/repos/hartwigmedical/health-checks/assignees{/user}","branches_url":"https://api.github.com/repos/hartwigmedical/health-checks/branches{/branch}","tags_url":"https://api.github.com/repos/hartwigmedical/health-checks/tags","blobs_url":"https://api.github.com/repos/hartwigmedical/health-checks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hartwigmedical/health-checks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hartwigmedical/health-checks/git/refs{/sha}","trees_url":"https://api.github.com/repos/hartwigmedical/health-checks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hartwigmedical/health-checks/statuses/{sha}","languages_url":"https://api.github.com/repos/hartwigmedical/health-checks/languages","stargazers_url":"https://api.github.com/repos/hartwigmedical/health-checks/stargazers","contributors_url":"https://api.github.com/repos/hartwigmedical/health-checks/contributors","subscribers_url":"https://api.github.com/repos/hartwigmedical/health-checks/subscribers","subscription_url":"https://api.github.com/repos/hartwigmedical/health-checks/subscription","commits_url":"https://api.github.com/repos/hartwigmedical/health-checks/commits{/sha}","git_commits_url":"https://api.github.com/repos/hartwigmedical/health-checks/git/commits{/sha}","comments_url":"https://api.github.com/repos/hartwigmedical/health-checks/comments{/number}","issue_comment_url":"https://api.github.com/repos/hartwigmedical/health-checks/issues/comments{/number}","contents_url":"https://api.github.com/repos/hartwigmedical/health-checks/contents/{+path}","compare_url":"https://api.github.com/repos/hartwigmedical/health-checks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hartwigmedical/health-checks/merges","archive_url":"https://api.github.com/repos/hartwigmedical/health-checks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hartwigmedical/health-checks/downloads","issues_url":"https://api.github.com/repos/hartwigmedical/health-checks/issues{/number}","pulls_url":"https://api.github.com/repos/hartwigmedical/health-checks/pulls{/number}","milestones_url":"https://api.github.com/repos/hartwigmedical/health-checks/milestones{/number}","notifications_url":"https://api.github.com/repos/hartwigmedical/health-checks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hartwigmedical/health-checks/labels{/name}","releases_url":"https://api.github.com/repos/hartwigmedical/health-checks/releases{/id}","deployments_url":"https://api.github.com/repos/hartwigmedical/health-checks/deployments","created_at":"2016-06-02T07:54:11Z","updated_at":"2016-06-08T08:34:39Z","pushed_at":"2016-06-28T08:48:06Z","git_url":"git://github.com/hartwigmedical/health-checks.git","ssh_url":"git@github.com:hartwigmedical/health-checks.git","clone_url":"https://github.com/hartwigmedical/health-checks.git","svn_url":"https://github.com/hartwigmedical/health-checks","homepage":null,"size":729,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hartwigmedical/health-checks/pulls/50"},"html":{"href":"https://github.com/hartwigmedical/health-checks/pull/50"},"issue":{"href":"https://api.github.com/repos/hartwigmedical/health-checks/issues/50"},"comments":{"href":"https://api.github.com/repos/hartwigmedical/health-checks/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/hartwigmedical/health-checks/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/hartwigmedical/health-checks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hartwigmedical/health-checks/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/hartwigmedical/health-checks/statuses/a0e92f4f4adcef4502ffbe61bd492086ff7d36a4"}}}}
{"actor":{"display_login":"codacy-bot"}}