{"action":"created","comment":{"url":"https://api.github.com/repos/realm/SwiftLint/pulls/comments/130584923","pull_request_review_id":53474868,"id":130584923,"diff_hunk":"@@ -0,0 +1,55 @@\n+//\n+//  DiscouragedInitConfiguration.swift\n+//  SwiftLint\n+//\n+//  Created by Ornithologist Coder on 8/1/17.\n+//  Copyright © 2017 Realm. All rights reserved.\n+//\n+\n+import Foundation\n+import SourceKittenFramework\n+\n+public struct DiscouragedInitConfiguration: RuleConfiguration, Equatable {\n+    public var severityConfiguration = SeverityConfiguration(.warning)\n+\n+    public var consoleDescription: String {\n+        return severityConfiguration.consoleDescription","path":"Source/SwiftLintFramework/Rules/RuleConfigurations/DiscouragedInitConfiguration.swift","position":16,"original_position":16,"commit_id":"181a9e7f85cd102a618771b862a05cd17e7b6d47","original_commit_id":"181a9e7f85cd102a618771b862a05cd17e7b6d47","user":{"login":"marcelofabri","id":833072,"avatar_url":"https://avatars1.githubusercontent.com/u/833072?v=4","gravatar_id":"","url":"https://api.github.com/users/marcelofabri","html_url":"https://github.com/marcelofabri","followers_url":"https://api.github.com/users/marcelofabri/followers","following_url":"https://api.github.com/users/marcelofabri/following{/other_user}","gists_url":"https://api.github.com/users/marcelofabri/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelofabri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelofabri/subscriptions","organizations_url":"https://api.github.com/users/marcelofabri/orgs","repos_url":"https://api.github.com/users/marcelofabri/repos","events_url":"https://api.github.com/users/marcelofabri/events{/privacy}","received_events_url":"https://api.github.com/users/marcelofabri/received_events","type":"User","site_admin":false},"body":"You need to include all configuration in the description. \r\nFor example:\r\n\r\n```swift\r\nreturn \"severity: \\(severityConfiguration.consoleDescription), included: \\(discouragedInits)\"\r\n```","created_at":"2017-08-01T11:40:37Z","updated_at":"2017-08-01T11:40:37Z","html_url":"https://github.com/realm/SwiftLint/pull/1731#discussion_r130584923","pull_request_url":"https://api.github.com/repos/realm/SwiftLint/pulls/1731","_links":{"self":{"href":"https://api.github.com/repos/realm/SwiftLint/pulls/comments/130584923"},"html":{"href":"https://github.com/realm/SwiftLint/pull/1731#discussion_r130584923"},"pull_request":{"href":"https://api.github.com/repos/realm/SwiftLint/pulls/1731"}}},"pull_request":{"url":"https://api.github.com/repos/realm/SwiftLint/pulls/1731","id":133434186,"html_url":"https://github.com/realm/SwiftLint/pull/1731","diff_url":"https://github.com/realm/SwiftLint/pull/1731.diff","patch_url":"https://github.com/realm/SwiftLint/pull/1731.patch","issue_url":"https://api.github.com/repos/realm/SwiftLint/issues/1731","number":1731,"state":"open","locked":false,"title":"Add discouraged_init opt-in rule that discourages direct initialization of certain types","user":{"login":"ornithocoder","id":19753339,"avatar_url":"https://avatars1.githubusercontent.com/u/19753339?v=4","gravatar_id":"","url":"https://api.github.com/users/ornithocoder","html_url":"https://github.com/ornithocoder","followers_url":"https://api.github.com/users/ornithocoder/followers","following_url":"https://api.github.com/users/ornithocoder/following{/other_user}","gists_url":"https://api.github.com/users/ornithocoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ornithocoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ornithocoder/subscriptions","organizations_url":"https://api.github.com/users/ornithocoder/orgs","repos_url":"https://api.github.com/users/ornithocoder/repos","events_url":"https://api.github.com/users/ornithocoder/events{/privacy}","received_events_url":"https://api.github.com/users/ornithocoder/received_events","type":"User","site_admin":false},"body":"Implements #1306, requested by  @Noobish1.\r\n\r\n* Opt-in rule,\r\n* Implements UIDevice() and Bundle() by default,\r\n* Allows severity configuration (warning or error) via .swiftlint,\r\n* Allows including more types via .swiftlint.","created_at":"2017-08-01T10:02:22Z","updated_at":"2017-08-01T11:40:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a85507d48156a09edbc6dc56fee6f59ea5ceac95","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/realm/SwiftLint/pulls/1731/commits","review_comments_url":"https://api.github.com/repos/realm/SwiftLint/pulls/1731/comments","review_comment_url":"https://api.github.com/repos/realm/SwiftLint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/realm/SwiftLint/issues/1731/comments","statuses_url":"https://api.github.com/repos/realm/SwiftLint/statuses/181a9e7f85cd102a618771b862a05cd17e7b6d47","head":{"label":"ornithocoder:discourage_init","ref":"discourage_init","sha":"181a9e7f85cd102a618771b862a05cd17e7b6d47","user":{"login":"ornithocoder","id":19753339,"avatar_url":"https://avatars1.githubusercontent.com/u/19753339?v=4","gravatar_id":"","url":"https://api.github.com/users/ornithocoder","html_url":"https://github.com/ornithocoder","followers_url":"https://api.github.com/users/ornithocoder/followers","following_url":"https://api.github.com/users/ornithocoder/following{/other_user}","gists_url":"https://api.github.com/users/ornithocoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ornithocoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ornithocoder/subscriptions","organizations_url":"https://api.github.com/users/ornithocoder/orgs","repos_url":"https://api.github.com/users/ornithocoder/repos","events_url":"https://api.github.com/users/ornithocoder/events{/privacy}","received_events_url":"https://api.github.com/users/ornithocoder/received_events","type":"User","site_admin":false},"repo":{"id":91995775,"name":"personal-fork-swiftlint","full_name":"ornithocoder/personal-fork-swiftlint","owner":{"login":"ornithocoder","id":19753339,"avatar_url":"https://avatars1.githubusercontent.com/u/19753339?v=4","gravatar_id":"","url":"https://api.github.com/users/ornithocoder","html_url":"https://github.com/ornithocoder","followers_url":"https://api.github.com/users/ornithocoder/followers","following_url":"https://api.github.com/users/ornithocoder/following{/other_user}","gists_url":"https://api.github.com/users/ornithocoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ornithocoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ornithocoder/subscriptions","organizations_url":"https://api.github.com/users/ornithocoder/orgs","repos_url":"https://api.github.com/users/ornithocoder/repos","events_url":"https://api.github.com/users/ornithocoder/events{/privacy}","received_events_url":"https://api.github.com/users/ornithocoder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ornithocoder/personal-fork-swiftlint","description":"A tool to enforce Swift style and conventions.","fork":true,"url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint","forks_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/forks","keys_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/teams","hooks_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/hooks","issue_events_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/issues/events{/number}","events_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/events","assignees_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/assignees{/user}","branches_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/branches{/branch}","tags_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/tags","blobs_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/git/refs{/sha}","trees_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/statuses/{sha}","languages_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/languages","stargazers_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/stargazers","contributors_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/contributors","subscribers_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/subscribers","subscription_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/subscription","commits_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/commits{/sha}","git_commits_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/git/commits{/sha}","comments_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/comments{/number}","issue_comment_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/issues/comments{/number}","contents_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/contents/{+path}","compare_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/merges","archive_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/downloads","issues_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/issues{/number}","pulls_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/pulls{/number}","milestones_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/milestones{/number}","notifications_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/labels{/name}","releases_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/releases{/id}","deployments_url":"https://api.github.com/repos/ornithocoder/personal-fork-swiftlint/deployments","created_at":"2017-05-22T00:12:55Z","updated_at":"2017-05-22T00:13:20Z","pushed_at":"2017-08-01T10:28:13Z","git_url":"git://github.com/ornithocoder/personal-fork-swiftlint.git","ssh_url":"git@github.com:ornithocoder/personal-fork-swiftlint.git","clone_url":"https://github.com/ornithocoder/personal-fork-swiftlint.git","svn_url":"https://github.com/ornithocoder/personal-fork-swiftlint","homepage":"https://realm.io","size":4985,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"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":"realm:master","ref":"master","sha":"f0f746f5a7af8cb22b54a5ffc2bce334b402807d","user":{"login":"realm","id":7575099,"avatar_url":"https://avatars0.githubusercontent.com/u/7575099?v=4","gravatar_id":"","url":"https://api.github.com/users/realm","html_url":"https://github.com/realm","followers_url":"https://api.github.com/users/realm/followers","following_url":"https://api.github.com/users/realm/following{/other_user}","gists_url":"https://api.github.com/users/realm/gists{/gist_id}","starred_url":"https://api.github.com/users/realm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realm/subscriptions","organizations_url":"https://api.github.com/users/realm/orgs","repos_url":"https://api.github.com/users/realm/repos","events_url":"https://api.github.com/users/realm/events{/privacy}","received_events_url":"https://api.github.com/users/realm/received_events","type":"Organization","site_admin":false},"repo":{"id":35732214,"name":"SwiftLint","full_name":"realm/SwiftLint","owner":{"login":"realm","id":7575099,"avatar_url":"https://avatars0.githubusercontent.com/u/7575099?v=4","gravatar_id":"","url":"https://api.github.com/users/realm","html_url":"https://github.com/realm","followers_url":"https://api.github.com/users/realm/followers","following_url":"https://api.github.com/users/realm/following{/other_user}","gists_url":"https://api.github.com/users/realm/gists{/gist_id}","starred_url":"https://api.github.com/users/realm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realm/subscriptions","organizations_url":"https://api.github.com/users/realm/orgs","repos_url":"https://api.github.com/users/realm/repos","events_url":"https://api.github.com/users/realm/events{/privacy}","received_events_url":"https://api.github.com/users/realm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/realm/SwiftLint","description":"A tool to enforce Swift style and conventions.","fork":false,"url":"https://api.github.com/repos/realm/SwiftLint","forks_url":"https://api.github.com/repos/realm/SwiftLint/forks","keys_url":"https://api.github.com/repos/realm/SwiftLint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/realm/SwiftLint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/realm/SwiftLint/teams","hooks_url":"https://api.github.com/repos/realm/SwiftLint/hooks","issue_events_url":"https://api.github.com/repos/realm/SwiftLint/issues/events{/number}","events_url":"https://api.github.com/repos/realm/SwiftLint/events","assignees_url":"https://api.github.com/repos/realm/SwiftLint/assignees{/user}","branches_url":"https://api.github.com/repos/realm/SwiftLint/branches{/branch}","tags_url":"https://api.github.com/repos/realm/SwiftLint/tags","blobs_url":"https://api.github.com/repos/realm/SwiftLint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/realm/SwiftLint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/realm/SwiftLint/git/refs{/sha}","trees_url":"https://api.github.com/repos/realm/SwiftLint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/realm/SwiftLint/statuses/{sha}","languages_url":"https://api.github.com/repos/realm/SwiftLint/languages","stargazers_url":"https://api.github.com/repos/realm/SwiftLint/stargazers","contributors_url":"https://api.github.com/repos/realm/SwiftLint/contributors","subscribers_url":"https://api.github.com/repos/realm/SwiftLint/subscribers","subscription_url":"https://api.github.com/repos/realm/SwiftLint/subscription","commits_url":"https://api.github.com/repos/realm/SwiftLint/commits{/sha}","git_commits_url":"https://api.github.com/repos/realm/SwiftLint/git/commits{/sha}","comments_url":"https://api.github.com/repos/realm/SwiftLint/comments{/number}","issue_comment_url":"https://api.github.com/repos/realm/SwiftLint/issues/comments{/number}","contents_url":"https://api.github.com/repos/realm/SwiftLint/contents/{+path}","compare_url":"https://api.github.com/repos/realm/SwiftLint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/realm/SwiftLint/merges","archive_url":"https://api.github.com/repos/realm/SwiftLint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/realm/SwiftLint/downloads","issues_url":"https://api.github.com/repos/realm/SwiftLint/issues{/number}","pulls_url":"https://api.github.com/repos/realm/SwiftLint/pulls{/number}","milestones_url":"https://api.github.com/repos/realm/SwiftLint/milestones{/number}","notifications_url":"https://api.github.com/repos/realm/SwiftLint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/realm/SwiftLint/labels{/name}","releases_url":"https://api.github.com/repos/realm/SwiftLint/releases{/id}","deployments_url":"https://api.github.com/repos/realm/SwiftLint/deployments","created_at":"2015-05-16T16:59:31Z","updated_at":"2017-08-01T06:21:20Z","pushed_at":"2017-08-01T10:28:14Z","git_url":"git://github.com/realm/SwiftLint.git","ssh_url":"git@github.com:realm/SwiftLint.git","clone_url":"https://github.com/realm/SwiftLint.git","svn_url":"https://github.com/realm/SwiftLint","homepage":"https://realm.io","size":5001,"stargazers_count":7313,"watchers_count":7313,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":616,"mirror_url":null,"open_issues_count":168,"forks":616,"open_issues":168,"watchers":7313,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/realm/SwiftLint/pulls/1731"},"html":{"href":"https://github.com/realm/SwiftLint/pull/1731"},"issue":{"href":"https://api.github.com/repos/realm/SwiftLint/issues/1731"},"comments":{"href":"https://api.github.com/repos/realm/SwiftLint/issues/1731/comments"},"review_comments":{"href":"https://api.github.com/repos/realm/SwiftLint/pulls/1731/comments"},"review_comment":{"href":"https://api.github.com/repos/realm/SwiftLint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/realm/SwiftLint/pulls/1731/commits"},"statuses":{"href":"https://api.github.com/repos/realm/SwiftLint/statuses/181a9e7f85cd102a618771b862a05cd17e7b6d47"}}}}
{"actor":{"display_login":"marcelofabri"}}