{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls/comments/50250124","id":50250124,"diff_hunk":"@@ -1,6 +1,18 @@\n+var fs = require(\"fs\");\n+\n function Config(rawConfig) {\n-  this.rawConfig = rawConfig;\n-}\n+  if (rawConfig == \"{}\") {","path":"lib/config.js","position":6,"original_position":6,"commit_id":"b2040a91a2dd85ef72cd39bf20bafe85fe2a21ee","original_commit_id":"b2040a91a2dd85ef72cd39bf20bafe85fe2a21ee","user":{"login":"mike-burns","id":4550,"avatar_url":"https://avatars.githubusercontent.com/u/4550?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-burns","html_url":"https://github.com/mike-burns","followers_url":"https://api.github.com/users/mike-burns/followers","following_url":"https://api.github.com/users/mike-burns/following{/other_user}","gists_url":"https://api.github.com/users/mike-burns/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-burns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-burns/subscriptions","organizations_url":"https://api.github.com/users/mike-burns/orgs","repos_url":"https://api.github.com/users/mike-burns/repos","events_url":"https://api.github.com/users/mike-burns/events{/privacy}","received_events_url":"https://api.github.com/users/mike-burns/received_events","type":"User","site_admin":false},"body":"In the least you could extract it to a well-named constant. How about `unconfiguredConfig`?","created_at":"2016-01-20T12:56:10Z","updated_at":"2016-01-20T12:56:10Z","html_url":"https://github.com/thoughtbot/hound-jshint/pull/5#discussion_r50250124","pull_request_url":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls/comments/50250124"},"html":{"href":"https://github.com/thoughtbot/hound-jshint/pull/5#discussion_r50250124"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls/5","id":56466229,"html_url":"https://github.com/thoughtbot/hound-jshint/pull/5","diff_url":"https://github.com/thoughtbot/hound-jshint/pull/5.diff","patch_url":"https://github.com/thoughtbot/hound-jshint/pull/5.patch","issue_url":"https://api.github.com/repos/thoughtbot/hound-jshint/issues/5","number":5,"state":"open","locked":false,"title":"Use default configuration file if none is given","user":{"login":"teoljungberg","id":810650,"avatar_url":"https://avatars.githubusercontent.com/u/810650?v=3","gravatar_id":"","url":"https://api.github.com/users/teoljungberg","html_url":"https://github.com/teoljungberg","followers_url":"https://api.github.com/users/teoljungberg/followers","following_url":"https://api.github.com/users/teoljungberg/following{/other_user}","gists_url":"https://api.github.com/users/teoljungberg/gists{/gist_id}","starred_url":"https://api.github.com/users/teoljungberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teoljungberg/subscriptions","organizations_url":"https://api.github.com/users/teoljungberg/orgs","repos_url":"https://api.github.com/users/teoljungberg/repos","events_url":"https://api.github.com/users/teoljungberg/events{/privacy}","received_events_url":"https://api.github.com/users/teoljungberg/received_events","type":"User","site_admin":false},"body":"To have a migration path for existing users, we're keeping the same\nbehavior as the current `javascript` linter in Hound. Which as a default\nconfiguration file.\n\nhttps://trello.com/c/LzngtlIn","created_at":"2016-01-19T13:34:24Z","updated_at":"2016-01-20T12:56:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5495664e617b4bd31f721b1ecad900cddfb870d7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls/5/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls/5/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/hound-jshint/issues/5/comments","statuses_url":"https://api.github.com/repos/thoughtbot/hound-jshint/statuses/b2040a91a2dd85ef72cd39bf20bafe85fe2a21ee","head":{"label":"thoughtbot:default-config","ref":"default-config","sha":"b2040a91a2dd85ef72cd39bf20bafe85fe2a21ee","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":44116236,"name":"hound-jshint","full_name":"thoughtbot/hound-jshint","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/hound-jshint","description":"JSHint review service for Hound","fork":false,"url":"https://api.github.com/repos/thoughtbot/hound-jshint","forks_url":"https://api.github.com/repos/thoughtbot/hound-jshint/forks","keys_url":"https://api.github.com/repos/thoughtbot/hound-jshint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/hound-jshint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/hound-jshint/teams","hooks_url":"https://api.github.com/repos/thoughtbot/hound-jshint/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/hound-jshint/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/hound-jshint/events","assignees_url":"https://api.github.com/repos/thoughtbot/hound-jshint/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/hound-jshint/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/hound-jshint/tags","blobs_url":"https://api.github.com/repos/thoughtbot/hound-jshint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/hound-jshint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/hound-jshint/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/hound-jshint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/hound-jshint/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/hound-jshint/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/hound-jshint/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/hound-jshint/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/hound-jshint/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/hound-jshint/subscription","commits_url":"https://api.github.com/repos/thoughtbot/hound-jshint/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/hound-jshint/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/hound-jshint/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/hound-jshint/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/hound-jshint/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/hound-jshint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/hound-jshint/merges","archive_url":"https://api.github.com/repos/thoughtbot/hound-jshint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/hound-jshint/downloads","issues_url":"https://api.github.com/repos/thoughtbot/hound-jshint/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/hound-jshint/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/hound-jshint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/hound-jshint/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/hound-jshint/releases{/id}","created_at":"2015-10-12T15:26:03Z","updated_at":"2016-01-16T14:48:06Z","pushed_at":"2016-01-20T08:54:35Z","git_url":"git://github.com/thoughtbot/hound-jshint.git","ssh_url":"git@github.com:thoughtbot/hound-jshint.git","clone_url":"https://github.com/thoughtbot/hound-jshint.git","svn_url":"https://github.com/thoughtbot/hound-jshint","homepage":"https://houndci.com","size":18,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":0,"default_branch":"master"}},"base":{"label":"thoughtbot:master","ref":"master","sha":"aa09aba33ca8f31d278ad9d7e04b7bdca11dc536","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":44116236,"name":"hound-jshint","full_name":"thoughtbot/hound-jshint","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/hound-jshint","description":"JSHint review service for Hound","fork":false,"url":"https://api.github.com/repos/thoughtbot/hound-jshint","forks_url":"https://api.github.com/repos/thoughtbot/hound-jshint/forks","keys_url":"https://api.github.com/repos/thoughtbot/hound-jshint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/hound-jshint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/hound-jshint/teams","hooks_url":"https://api.github.com/repos/thoughtbot/hound-jshint/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/hound-jshint/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/hound-jshint/events","assignees_url":"https://api.github.com/repos/thoughtbot/hound-jshint/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/hound-jshint/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/hound-jshint/tags","blobs_url":"https://api.github.com/repos/thoughtbot/hound-jshint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/hound-jshint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/hound-jshint/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/hound-jshint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/hound-jshint/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/hound-jshint/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/hound-jshint/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/hound-jshint/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/hound-jshint/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/hound-jshint/subscription","commits_url":"https://api.github.com/repos/thoughtbot/hound-jshint/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/hound-jshint/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/hound-jshint/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/hound-jshint/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/hound-jshint/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/hound-jshint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/hound-jshint/merges","archive_url":"https://api.github.com/repos/thoughtbot/hound-jshint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/hound-jshint/downloads","issues_url":"https://api.github.com/repos/thoughtbot/hound-jshint/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/hound-jshint/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/hound-jshint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/hound-jshint/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/hound-jshint/releases{/id}","created_at":"2015-10-12T15:26:03Z","updated_at":"2016-01-16T14:48:06Z","pushed_at":"2016-01-20T08:54:35Z","git_url":"git://github.com/thoughtbot/hound-jshint.git","ssh_url":"git@github.com:thoughtbot/hound-jshint.git","clone_url":"https://github.com/thoughtbot/hound-jshint.git","svn_url":"https://github.com/thoughtbot/hound-jshint","homepage":"https://houndci.com","size":18,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls/5"},"html":{"href":"https://github.com/thoughtbot/hound-jshint/pull/5"},"issue":{"href":"https://api.github.com/repos/thoughtbot/hound-jshint/issues/5"},"comments":{"href":"https://api.github.com/repos/thoughtbot/hound-jshint/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/hound-jshint/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/hound-jshint/statuses/b2040a91a2dd85ef72cd39bf20bafe85fe2a21ee"}}}}