{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/hound-swift/pulls/comments/38758173","id":38758173,"diff_hunk":"@@ -0,0 +1,25 @@\n+require \"yaml\"\n+\n+class ConfigOptions\n+  DEFAULT_CONFIG_FILE = \"config/default.yml\"\n+\n+  def initialize(config = \"\")\n+    @custom_options = YAML.load(config || \"\") || {}","path":"lib/config_options.rb","position":7,"original_position":7,"commit_id":"b3ee94927ba39fb076c3f91be2726acf3c0cdfe8","original_commit_id":"b3ee94927ba39fb076c3f91be2726acf3c0cdfe8","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":"Is the `|| \"\"` neccessary` if we have `config = \"\"` in the argumen list?\r\nThat would also mean we can skip `|| {}`, right?","created_at":"2015-09-04T14:41:16Z","updated_at":"2015-09-04T14:41:16Z","html_url":"https://github.com/thoughtbot/hound-swift/pull/4#discussion_r38758173","pull_request_url":"https://api.github.com/repos/thoughtbot/hound-swift/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/hound-swift/pulls/comments/38758173"},"html":{"href":"https://github.com/thoughtbot/hound-swift/pull/4#discussion_r38758173"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/hound-swift/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/hound-swift/pulls/4","id":43461451,"html_url":"https://github.com/thoughtbot/hound-swift/pull/4","diff_url":"https://github.com/thoughtbot/hound-swift/pull/4.diff","patch_url":"https://github.com/thoughtbot/hound-swift/pull/4.patch","issue_url":"https://api.github.com/repos/thoughtbot/hound-swift/issues/4","number":4,"state":"open","locked":false,"title":"Add support for SwiftLint config","user":{"login":"jakecraige","id":3799709,"avatar_url":"https://avatars.githubusercontent.com/u/3799709?v=3","gravatar_id":"","url":"https://api.github.com/users/jakecraige","html_url":"https://github.com/jakecraige","followers_url":"https://api.github.com/users/jakecraige/followers","following_url":"https://api.github.com/users/jakecraige/following{/other_user}","gists_url":"https://api.github.com/users/jakecraige/gists{/gist_id}","starred_url":"https://api.github.com/users/jakecraige/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakecraige/subscriptions","organizations_url":"https://api.github.com/users/jakecraige/orgs","repos_url":"https://api.github.com/users/jakecraige/repos","events_url":"https://api.github.com/users/jakecraige/events{/privacy}","received_events_url":"https://api.github.com/users/jakecraige/received_events","type":"User","site_admin":false},"body":"Why:\r\n\r\n* People want to be able to configure SwiftLint to their liking\r\n\r\nThis change addresses the need by:\r\n\r\n* Passing through the user config to Swiftlint\r\n* Creating `bin/hound-swiftlint` that we call to call out\r\n  to the swiftlint binary on the system.\r\n  - This allows us to run multiple shell commands without having\r\n    to type them all out in ruby.\r\n  - It also makes testing easier because we can make simpler assertions.\r\n* Dependency injecting a `SystemCall` so that we can swap it out\r\n  in test and not actually call the system","created_at":"2015-08-26T22:49:38Z","updated_at":"2015-09-04T14:41:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d07d69d2b94b3634499b823ad441b39033b037a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/hound-swift/pulls/4/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/hound-swift/pulls/4/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/hound-swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/hound-swift/issues/4/comments","statuses_url":"https://api.github.com/repos/thoughtbot/hound-swift/statuses/b3ee94927ba39fb076c3f91be2726acf3c0cdfe8","head":{"label":"thoughtbot:jc-swiftlint-config","ref":"jc-swiftlint-config","sha":"b3ee94927ba39fb076c3f91be2726acf3c0cdfe8","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":41325466,"name":"hound-swift","full_name":"thoughtbot/hound-swift","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-swift","description":"Worker process responsible for Swift style code review. https://houndci.com","fork":false,"url":"https://api.github.com/repos/thoughtbot/hound-swift","forks_url":"https://api.github.com/repos/thoughtbot/hound-swift/forks","keys_url":"https://api.github.com/repos/thoughtbot/hound-swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/hound-swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/hound-swift/teams","hooks_url":"https://api.github.com/repos/thoughtbot/hound-swift/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/hound-swift/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/hound-swift/events","assignees_url":"https://api.github.com/repos/thoughtbot/hound-swift/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/hound-swift/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/hound-swift/tags","blobs_url":"https://api.github.com/repos/thoughtbot/hound-swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/hound-swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/hound-swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/hound-swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/hound-swift/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/hound-swift/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/hound-swift/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/hound-swift/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/hound-swift/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/hound-swift/subscription","commits_url":"https://api.github.com/repos/thoughtbot/hound-swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/hound-swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/hound-swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/hound-swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/hound-swift/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/hound-swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/hound-swift/merges","archive_url":"https://api.github.com/repos/thoughtbot/hound-swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/hound-swift/downloads","issues_url":"https://api.github.com/repos/thoughtbot/hound-swift/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/hound-swift/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/hound-swift/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/hound-swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/hound-swift/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/hound-swift/releases{/id}","created_at":"2015-08-24T20:28:48Z","updated_at":"2015-08-26T22:24:49Z","pushed_at":"2015-09-04T13:25:50Z","git_url":"git://github.com/thoughtbot/hound-swift.git","ssh_url":"git@github.com:thoughtbot/hound-swift.git","clone_url":"https://github.com/thoughtbot/hound-swift.git","svn_url":"https://github.com/thoughtbot/hound-swift","homepage":null,"size":226,"stargazers_count":4,"watchers_count":4,"language":"Ruby","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":4,"default_branch":"master"}},"base":{"label":"thoughtbot:master","ref":"master","sha":"201673bf00fc795276aa0ccb7d81de87e2f1018c","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":41325466,"name":"hound-swift","full_name":"thoughtbot/hound-swift","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-swift","description":"Worker process responsible for Swift style code review. https://houndci.com","fork":false,"url":"https://api.github.com/repos/thoughtbot/hound-swift","forks_url":"https://api.github.com/repos/thoughtbot/hound-swift/forks","keys_url":"https://api.github.com/repos/thoughtbot/hound-swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/hound-swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/hound-swift/teams","hooks_url":"https://api.github.com/repos/thoughtbot/hound-swift/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/hound-swift/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/hound-swift/events","assignees_url":"https://api.github.com/repos/thoughtbot/hound-swift/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/hound-swift/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/hound-swift/tags","blobs_url":"https://api.github.com/repos/thoughtbot/hound-swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/hound-swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/hound-swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/hound-swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/hound-swift/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/hound-swift/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/hound-swift/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/hound-swift/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/hound-swift/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/hound-swift/subscription","commits_url":"https://api.github.com/repos/thoughtbot/hound-swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/hound-swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/hound-swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/hound-swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/hound-swift/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/hound-swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/hound-swift/merges","archive_url":"https://api.github.com/repos/thoughtbot/hound-swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/hound-swift/downloads","issues_url":"https://api.github.com/repos/thoughtbot/hound-swift/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/hound-swift/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/hound-swift/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/hound-swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/hound-swift/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/hound-swift/releases{/id}","created_at":"2015-08-24T20:28:48Z","updated_at":"2015-08-26T22:24:49Z","pushed_at":"2015-09-04T13:25:50Z","git_url":"git://github.com/thoughtbot/hound-swift.git","ssh_url":"git@github.com:thoughtbot/hound-swift.git","clone_url":"https://github.com/thoughtbot/hound-swift.git","svn_url":"https://github.com/thoughtbot/hound-swift","homepage":null,"size":226,"stargazers_count":4,"watchers_count":4,"language":"Ruby","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":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/hound-swift/pulls/4"},"html":{"href":"https://github.com/thoughtbot/hound-swift/pull/4"},"issue":{"href":"https://api.github.com/repos/thoughtbot/hound-swift/issues/4"},"comments":{"href":"https://api.github.com/repos/thoughtbot/hound-swift/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/hound-swift/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/hound-swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/hound-swift/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/hound-swift/statuses/b3ee94927ba39fb076c3f91be2726acf3c0cdfe8"}}}}