{"action":"created","comment":{"url":"https://api.github.com/repos/openHPI/xikolo-ios/pulls/comments/173817738","pull_request_review_id":103068488,"id":173817738,"diff_hunk":"@@ -3,25 +3,27 @@\n //  Copyright © HPI. All rights reserved.\n //\n \n-import Foundation\n import CoreData\n-\n+import Foundation\n \n class CoreDataObserver {\n     static let standard = CoreDataObserver()\n \n     func startObserving() {\n-        NotificationCenter.default.addObserver(self, selector: #selector(coreDataChange(note:)), name: NSNotification.Name.NSManagedObjectContextObjectsDidChange, object: CoreDataHelper.viewContext)\n+        NotificationCenter.default.addObserver(self,\n+                                               selector: #selector(coreDataChange(note:)),\n+                                               name: NSNotification.Name.NSManagedObjectContextObjectsDidChange,\n+                                               object: CoreDataHelper.viewContext)\n     }\n \n     func stopObserving() {\n         NotificationCenter.default.removeObserver(self, name: NSNotification.Name.NSManagedObjectContextObjectsDidChange, object: CoreDataHelper.viewContext)\n     }\n-    \n+\n     @objc func coreDataChange(note: Notification) {","path":"xikolo-common/Data/Helper/CoreDataObserver.swift","position":25,"original_position":25,"commit_id":"ec22d1869149958782ab9c27db407db5613efff1","original_commit_id":"ec22d1869149958782ab9c27db407db5613efff1","user":{"login":"CodeQualityBot","id":33309654,"avatar_url":"https://avatars0.githubusercontent.com/u/33309654?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeQualityBot","html_url":"https://github.com/CodeQualityBot","followers_url":"https://api.github.com/users/CodeQualityBot/followers","following_url":"https://api.github.com/users/CodeQualityBot/following{/other_user}","gists_url":"https://api.github.com/users/CodeQualityBot/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeQualityBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeQualityBot/subscriptions","organizations_url":"https://api.github.com/users/CodeQualityBot/orgs","repos_url":"https://api.github.com/users/CodeQualityBot/repos","events_url":"https://api.github.com/users/CodeQualityBot/events{/privacy}","received_events_url":"https://api.github.com/users/CodeQualityBot/received_events","type":"User","site_admin":false},"body":"<table data-meta=\"generated_by_danger\">\n  <tbody>\n    <tr>\n      <td>:warning:</td>\n      <td width=\"100%\" data-sticky=\"false\"><span data-href=\"https://github.com/openHPI/xikolo-ios/blob/ec22d1869149958782ab9c27db407db5613efff1/xikolo-common/Data/Helper/CoreDataObserver.swift#L23\"></span>Function should have complexity 10 or less: currently complexity equals 15</td>\n    </tr>\n  </tbody>\n</table>\n\n\n\n","created_at":"2018-03-12T14:35:53Z","updated_at":"2018-03-12T14:35:53Z","html_url":"https://github.com/openHPI/xikolo-ios/pull/510#discussion_r173817738","pull_request_url":"https://api.github.com/repos/openHPI/xikolo-ios/pulls/510","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/openHPI/xikolo-ios/pulls/comments/173817738"},"html":{"href":"https://github.com/openHPI/xikolo-ios/pull/510#discussion_r173817738"},"pull_request":{"href":"https://api.github.com/repos/openHPI/xikolo-ios/pulls/510"}}},"pull_request":{"url":"https://api.github.com/repos/openHPI/xikolo-ios/pulls/510","id":174378672,"html_url":"https://github.com/openHPI/xikolo-ios/pull/510","diff_url":"https://github.com/openHPI/xikolo-ios/pull/510.diff","patch_url":"https://github.com/openHPI/xikolo-ios/pull/510.patch","issue_url":"https://api.github.com/repos/openHPI/xikolo-ios/issues/510","number":510,"state":"open","locked":false,"title":"Apply swiftlint rules","user":{"login":"mathebox","id":1757680,"avatar_url":"https://avatars3.githubusercontent.com/u/1757680?v=4","gravatar_id":"","url":"https://api.github.com/users/mathebox","html_url":"https://github.com/mathebox","followers_url":"https://api.github.com/users/mathebox/followers","following_url":"https://api.github.com/users/mathebox/following{/other_user}","gists_url":"https://api.github.com/users/mathebox/gists{/gist_id}","starred_url":"https://api.github.com/users/mathebox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathebox/subscriptions","organizations_url":"https://api.github.com/users/mathebox/orgs","repos_url":"https://api.github.com/users/mathebox/repos","events_url":"https://api.github.com/users/mathebox/events{/privacy}","received_events_url":"https://api.github.com/users/mathebox/received_events","type":"User","site_admin":false},"body":"Remaining violations:\r\n- 81 violations\r\n- 28 serious ","created_at":"2018-03-12T14:08:22Z","updated_at":"2018-03-12T14:35:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08e4df6a2b75a7106dadd066cd0016c2f0f8de12","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openHPI/xikolo-ios/pulls/510/commits","review_comments_url":"https://api.github.com/repos/openHPI/xikolo-ios/pulls/510/comments","review_comment_url":"https://api.github.com/repos/openHPI/xikolo-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openHPI/xikolo-ios/issues/510/comments","statuses_url":"https://api.github.com/repos/openHPI/xikolo-ios/statuses/ec22d1869149958782ab9c27db407db5613efff1","head":{"label":"openHPI:linting","ref":"linting","sha":"ec22d1869149958782ab9c27db407db5613efff1","user":{"login":"openHPI","id":8125421,"avatar_url":"https://avatars2.githubusercontent.com/u/8125421?v=4","gravatar_id":"","url":"https://api.github.com/users/openHPI","html_url":"https://github.com/openHPI","followers_url":"https://api.github.com/users/openHPI/followers","following_url":"https://api.github.com/users/openHPI/following{/other_user}","gists_url":"https://api.github.com/users/openHPI/gists{/gist_id}","starred_url":"https://api.github.com/users/openHPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openHPI/subscriptions","organizations_url":"https://api.github.com/users/openHPI/orgs","repos_url":"https://api.github.com/users/openHPI/repos","events_url":"https://api.github.com/users/openHPI/events{/privacy}","received_events_url":"https://api.github.com/users/openHPI/received_events","type":"Organization","site_admin":false},"repo":{"id":38035532,"name":"xikolo-ios","full_name":"openHPI/xikolo-ios","owner":{"login":"openHPI","id":8125421,"avatar_url":"https://avatars2.githubusercontent.com/u/8125421?v=4","gravatar_id":"","url":"https://api.github.com/users/openHPI","html_url":"https://github.com/openHPI","followers_url":"https://api.github.com/users/openHPI/followers","following_url":"https://api.github.com/users/openHPI/following{/other_user}","gists_url":"https://api.github.com/users/openHPI/gists{/gist_id}","starred_url":"https://api.github.com/users/openHPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openHPI/subscriptions","organizations_url":"https://api.github.com/users/openHPI/orgs","repos_url":"https://api.github.com/users/openHPI/repos","events_url":"https://api.github.com/users/openHPI/events{/privacy}","received_events_url":"https://api.github.com/users/openHPI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openHPI/xikolo-ios","description":"iOS App for openHPI, openSAP, mooc.house and OpenWHO","fork":false,"url":"https://api.github.com/repos/openHPI/xikolo-ios","forks_url":"https://api.github.com/repos/openHPI/xikolo-ios/forks","keys_url":"https://api.github.com/repos/openHPI/xikolo-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openHPI/xikolo-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openHPI/xikolo-ios/teams","hooks_url":"https://api.github.com/repos/openHPI/xikolo-ios/hooks","issue_events_url":"https://api.github.com/repos/openHPI/xikolo-ios/issues/events{/number}","events_url":"https://api.github.com/repos/openHPI/xikolo-ios/events","assignees_url":"https://api.github.com/repos/openHPI/xikolo-ios/assignees{/user}","branches_url":"https://api.github.com/repos/openHPI/xikolo-ios/branches{/branch}","tags_url":"https://api.github.com/repos/openHPI/xikolo-ios/tags","blobs_url":"https://api.github.com/repos/openHPI/xikolo-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openHPI/xikolo-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openHPI/xikolo-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/openHPI/xikolo-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openHPI/xikolo-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/openHPI/xikolo-ios/languages","stargazers_url":"https://api.github.com/repos/openHPI/xikolo-ios/stargazers","contributors_url":"https://api.github.com/repos/openHPI/xikolo-ios/contributors","subscribers_url":"https://api.github.com/repos/openHPI/xikolo-ios/subscribers","subscription_url":"https://api.github.com/repos/openHPI/xikolo-ios/subscription","commits_url":"https://api.github.com/repos/openHPI/xikolo-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/openHPI/xikolo-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/openHPI/xikolo-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/openHPI/xikolo-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/openHPI/xikolo-ios/contents/{+path}","compare_url":"https://api.github.com/repos/openHPI/xikolo-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openHPI/xikolo-ios/merges","archive_url":"https://api.github.com/repos/openHPI/xikolo-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openHPI/xikolo-ios/downloads","issues_url":"https://api.github.com/repos/openHPI/xikolo-ios/issues{/number}","pulls_url":"https://api.github.com/repos/openHPI/xikolo-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/openHPI/xikolo-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/openHPI/xikolo-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openHPI/xikolo-ios/labels{/name}","releases_url":"https://api.github.com/repos/openHPI/xikolo-ios/releases{/id}","deployments_url":"https://api.github.com/repos/openHPI/xikolo-ios/deployments","created_at":"2015-06-25T07:45:02Z","updated_at":"2018-03-12T02:47:44Z","pushed_at":"2018-03-12T14:08:22Z","git_url":"git://github.com/openHPI/xikolo-ios.git","ssh_url":"git@github.com:openHPI/xikolo-ios.git","clone_url":"https://github.com/openHPI/xikolo-ios.git","svn_url":"https://github.com/openHPI/xikolo-ios","homepage":"https://itunes.apple.com/us/developer/hasso-plattner-institut/id440210904","size":39431,"stargazers_count":16,"watchers_count":16,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":79,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":79,"watchers":16,"default_branch":"dev"}},"base":{"label":"openHPI:dev","ref":"dev","sha":"6e3cd2d55de655acafd274cff21d84ef9964f4d2","user":{"login":"openHPI","id":8125421,"avatar_url":"https://avatars2.githubusercontent.com/u/8125421?v=4","gravatar_id":"","url":"https://api.github.com/users/openHPI","html_url":"https://github.com/openHPI","followers_url":"https://api.github.com/users/openHPI/followers","following_url":"https://api.github.com/users/openHPI/following{/other_user}","gists_url":"https://api.github.com/users/openHPI/gists{/gist_id}","starred_url":"https://api.github.com/users/openHPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openHPI/subscriptions","organizations_url":"https://api.github.com/users/openHPI/orgs","repos_url":"https://api.github.com/users/openHPI/repos","events_url":"https://api.github.com/users/openHPI/events{/privacy}","received_events_url":"https://api.github.com/users/openHPI/received_events","type":"Organization","site_admin":false},"repo":{"id":38035532,"name":"xikolo-ios","full_name":"openHPI/xikolo-ios","owner":{"login":"openHPI","id":8125421,"avatar_url":"https://avatars2.githubusercontent.com/u/8125421?v=4","gravatar_id":"","url":"https://api.github.com/users/openHPI","html_url":"https://github.com/openHPI","followers_url":"https://api.github.com/users/openHPI/followers","following_url":"https://api.github.com/users/openHPI/following{/other_user}","gists_url":"https://api.github.com/users/openHPI/gists{/gist_id}","starred_url":"https://api.github.com/users/openHPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openHPI/subscriptions","organizations_url":"https://api.github.com/users/openHPI/orgs","repos_url":"https://api.github.com/users/openHPI/repos","events_url":"https://api.github.com/users/openHPI/events{/privacy}","received_events_url":"https://api.github.com/users/openHPI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openHPI/xikolo-ios","description":"iOS App for openHPI, openSAP, mooc.house and OpenWHO","fork":false,"url":"https://api.github.com/repos/openHPI/xikolo-ios","forks_url":"https://api.github.com/repos/openHPI/xikolo-ios/forks","keys_url":"https://api.github.com/repos/openHPI/xikolo-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openHPI/xikolo-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openHPI/xikolo-ios/teams","hooks_url":"https://api.github.com/repos/openHPI/xikolo-ios/hooks","issue_events_url":"https://api.github.com/repos/openHPI/xikolo-ios/issues/events{/number}","events_url":"https://api.github.com/repos/openHPI/xikolo-ios/events","assignees_url":"https://api.github.com/repos/openHPI/xikolo-ios/assignees{/user}","branches_url":"https://api.github.com/repos/openHPI/xikolo-ios/branches{/branch}","tags_url":"https://api.github.com/repos/openHPI/xikolo-ios/tags","blobs_url":"https://api.github.com/repos/openHPI/xikolo-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openHPI/xikolo-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openHPI/xikolo-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/openHPI/xikolo-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openHPI/xikolo-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/openHPI/xikolo-ios/languages","stargazers_url":"https://api.github.com/repos/openHPI/xikolo-ios/stargazers","contributors_url":"https://api.github.com/repos/openHPI/xikolo-ios/contributors","subscribers_url":"https://api.github.com/repos/openHPI/xikolo-ios/subscribers","subscription_url":"https://api.github.com/repos/openHPI/xikolo-ios/subscription","commits_url":"https://api.github.com/repos/openHPI/xikolo-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/openHPI/xikolo-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/openHPI/xikolo-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/openHPI/xikolo-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/openHPI/xikolo-ios/contents/{+path}","compare_url":"https://api.github.com/repos/openHPI/xikolo-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openHPI/xikolo-ios/merges","archive_url":"https://api.github.com/repos/openHPI/xikolo-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openHPI/xikolo-ios/downloads","issues_url":"https://api.github.com/repos/openHPI/xikolo-ios/issues{/number}","pulls_url":"https://api.github.com/repos/openHPI/xikolo-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/openHPI/xikolo-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/openHPI/xikolo-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openHPI/xikolo-ios/labels{/name}","releases_url":"https://api.github.com/repos/openHPI/xikolo-ios/releases{/id}","deployments_url":"https://api.github.com/repos/openHPI/xikolo-ios/deployments","created_at":"2015-06-25T07:45:02Z","updated_at":"2018-03-12T02:47:44Z","pushed_at":"2018-03-12T14:08:22Z","git_url":"git://github.com/openHPI/xikolo-ios.git","ssh_url":"git@github.com:openHPI/xikolo-ios.git","clone_url":"https://github.com/openHPI/xikolo-ios.git","svn_url":"https://github.com/openHPI/xikolo-ios","homepage":"https://itunes.apple.com/us/developer/hasso-plattner-institut/id440210904","size":39431,"stargazers_count":16,"watchers_count":16,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":79,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":79,"watchers":16,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/openHPI/xikolo-ios/pulls/510"},"html":{"href":"https://github.com/openHPI/xikolo-ios/pull/510"},"issue":{"href":"https://api.github.com/repos/openHPI/xikolo-ios/issues/510"},"comments":{"href":"https://api.github.com/repos/openHPI/xikolo-ios/issues/510/comments"},"review_comments":{"href":"https://api.github.com/repos/openHPI/xikolo-ios/pulls/510/comments"},"review_comment":{"href":"https://api.github.com/repos/openHPI/xikolo-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openHPI/xikolo-ios/pulls/510/commits"},"statuses":{"href":"https://api.github.com/repos/openHPI/xikolo-ios/statuses/ec22d1869149958782ab9c27db407db5613efff1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"CodeQualityBot"}}