{"action":"created","comment":{"url":"https://api.github.com/repos/whitesmith/rubycritic/pulls/comments/48624814","id":48624814,"diff_hunk":"@@ -43,6 +43,10 @@ def smells_at_location(location)\n       smells.select { |smell| smell.at_location?(location) }\n     end\n \n+    def <=>(other)\n+      [rating.to_s, name] <=> [other.rating.to_s, other.name]","path":"lib/rubycritic/core/analysed_module.rb","position":5,"original_position":5,"commit_id":"79b9f8bddd5e2cbe01ac9b8e567d05fa3634e74e","original_commit_id":"79b9f8bddd5e2cbe01ac9b8e567d05fa3634e74e","user":{"login":"jbodah","id":6093002,"avatar_url":"https://avatars.githubusercontent.com/u/6093002?v=3","gravatar_id":"","url":"https://api.github.com/users/jbodah","html_url":"https://github.com/jbodah","followers_url":"https://api.github.com/users/jbodah/followers","following_url":"https://api.github.com/users/jbodah/following{/other_user}","gists_url":"https://api.github.com/users/jbodah/gists{/gist_id}","starred_url":"https://api.github.com/users/jbodah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbodah/subscriptions","organizations_url":"https://api.github.com/users/jbodah/orgs","repos_url":"https://api.github.com/users/jbodah/repos","events_url":"https://api.github.com/users/jbodah/events{/privacy}","received_events_url":"https://api.github.com/users/jbodah/received_events","type":"User","site_admin":false},"body":"Maybe we want this to sort bad ratings first?","created_at":"2015-12-30T19:19:49Z","updated_at":"2015-12-30T19:19:49Z","html_url":"https://github.com/whitesmith/rubycritic/pull/91#discussion_r48624814","pull_request_url":"https://api.github.com/repos/whitesmith/rubycritic/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/whitesmith/rubycritic/pulls/comments/48624814"},"html":{"href":"https://github.com/whitesmith/rubycritic/pull/91#discussion_r48624814"},"pull_request":{"href":"https://api.github.com/repos/whitesmith/rubycritic/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/whitesmith/rubycritic/pulls/91","id":54822527,"html_url":"https://github.com/whitesmith/rubycritic/pull/91","diff_url":"https://github.com/whitesmith/rubycritic/pull/91.diff","patch_url":"https://github.com/whitesmith/rubycritic/pull/91.patch","issue_url":"https://api.github.com/repos/whitesmith/rubycritic/issues/91","number":91,"state":"open","locked":false,"title":"add a ConsoleReport format","user":{"login":"jbodah","id":6093002,"avatar_url":"https://avatars.githubusercontent.com/u/6093002?v=3","gravatar_id":"","url":"https://api.github.com/users/jbodah","html_url":"https://github.com/jbodah","followers_url":"https://api.github.com/users/jbodah/followers","following_url":"https://api.github.com/users/jbodah/following{/other_user}","gists_url":"https://api.github.com/users/jbodah/gists{/gist_id}","starred_url":"https://api.github.com/users/jbodah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbodah/subscriptions","organizations_url":"https://api.github.com/users/jbodah/orgs","repos_url":"https://api.github.com/users/jbodah/repos","events_url":"https://api.github.com/users/jbodah/events{/privacy}","received_events_url":"https://api.github.com/users/jbodah/received_events","type":"User","site_admin":false},"body":"addresses https://github.com/whitesmith/rubycritic/issues/89\r\n\r\n<img width=\"1434\" alt=\"1__thanks_for_flying_vim__tmux_\" src=\"https://cloud.githubusercontent.com/assets/6093002/12055984/4fa53f12-af00-11e5-8ca8-70f71c092d08.png\">\r\n","created_at":"2015-12-30T19:16:33Z","updated_at":"2015-12-30T19:19:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99c14b8c0ab442d0bb4ad516be67929446e619ac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/whitesmith/rubycritic/pulls/91/commits","review_comments_url":"https://api.github.com/repos/whitesmith/rubycritic/pulls/91/comments","review_comment_url":"https://api.github.com/repos/whitesmith/rubycritic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/whitesmith/rubycritic/issues/91/comments","statuses_url":"https://api.github.com/repos/whitesmith/rubycritic/statuses/79b9f8bddd5e2cbe01ac9b8e567d05fa3634e74e","head":{"label":"jbodah:console-report","ref":"console-report","sha":"79b9f8bddd5e2cbe01ac9b8e567d05fa3634e74e","user":{"login":"jbodah","id":6093002,"avatar_url":"https://avatars.githubusercontent.com/u/6093002?v=3","gravatar_id":"","url":"https://api.github.com/users/jbodah","html_url":"https://github.com/jbodah","followers_url":"https://api.github.com/users/jbodah/followers","following_url":"https://api.github.com/users/jbodah/following{/other_user}","gists_url":"https://api.github.com/users/jbodah/gists{/gist_id}","starred_url":"https://api.github.com/users/jbodah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbodah/subscriptions","organizations_url":"https://api.github.com/users/jbodah/orgs","repos_url":"https://api.github.com/users/jbodah/repos","events_url":"https://api.github.com/users/jbodah/events{/privacy}","received_events_url":"https://api.github.com/users/jbodah/received_events","type":"User","site_admin":false},"repo":{"id":48763015,"name":"rubycritic","full_name":"jbodah/rubycritic","owner":{"login":"jbodah","id":6093002,"avatar_url":"https://avatars.githubusercontent.com/u/6093002?v=3","gravatar_id":"","url":"https://api.github.com/users/jbodah","html_url":"https://github.com/jbodah","followers_url":"https://api.github.com/users/jbodah/followers","following_url":"https://api.github.com/users/jbodah/following{/other_user}","gists_url":"https://api.github.com/users/jbodah/gists{/gist_id}","starred_url":"https://api.github.com/users/jbodah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbodah/subscriptions","organizations_url":"https://api.github.com/users/jbodah/orgs","repos_url":"https://api.github.com/users/jbodah/repos","events_url":"https://api.github.com/users/jbodah/events{/privacy}","received_events_url":"https://api.github.com/users/jbodah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbodah/rubycritic","description":"A Ruby code quality reporter","fork":true,"url":"https://api.github.com/repos/jbodah/rubycritic","forks_url":"https://api.github.com/repos/jbodah/rubycritic/forks","keys_url":"https://api.github.com/repos/jbodah/rubycritic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbodah/rubycritic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbodah/rubycritic/teams","hooks_url":"https://api.github.com/repos/jbodah/rubycritic/hooks","issue_events_url":"https://api.github.com/repos/jbodah/rubycritic/issues/events{/number}","events_url":"https://api.github.com/repos/jbodah/rubycritic/events","assignees_url":"https://api.github.com/repos/jbodah/rubycritic/assignees{/user}","branches_url":"https://api.github.com/repos/jbodah/rubycritic/branches{/branch}","tags_url":"https://api.github.com/repos/jbodah/rubycritic/tags","blobs_url":"https://api.github.com/repos/jbodah/rubycritic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbodah/rubycritic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbodah/rubycritic/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbodah/rubycritic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbodah/rubycritic/statuses/{sha}","languages_url":"https://api.github.com/repos/jbodah/rubycritic/languages","stargazers_url":"https://api.github.com/repos/jbodah/rubycritic/stargazers","contributors_url":"https://api.github.com/repos/jbodah/rubycritic/contributors","subscribers_url":"https://api.github.com/repos/jbodah/rubycritic/subscribers","subscription_url":"https://api.github.com/repos/jbodah/rubycritic/subscription","commits_url":"https://api.github.com/repos/jbodah/rubycritic/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbodah/rubycritic/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbodah/rubycritic/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbodah/rubycritic/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbodah/rubycritic/contents/{+path}","compare_url":"https://api.github.com/repos/jbodah/rubycritic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbodah/rubycritic/merges","archive_url":"https://api.github.com/repos/jbodah/rubycritic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbodah/rubycritic/downloads","issues_url":"https://api.github.com/repos/jbodah/rubycritic/issues{/number}","pulls_url":"https://api.github.com/repos/jbodah/rubycritic/pulls{/number}","milestones_url":"https://api.github.com/repos/jbodah/rubycritic/milestones{/number}","notifications_url":"https://api.github.com/repos/jbodah/rubycritic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbodah/rubycritic/labels{/name}","releases_url":"https://api.github.com/repos/jbodah/rubycritic/releases{/id}","created_at":"2015-12-29T19:11:11Z","updated_at":"2015-12-29T19:11:12Z","pushed_at":"2015-12-30T19:17:18Z","git_url":"git://github.com/jbodah/rubycritic.git","ssh_url":"git@github.com:jbodah/rubycritic.git","clone_url":"https://github.com/jbodah/rubycritic.git","svn_url":"https://github.com/jbodah/rubycritic","homepage":"","size":713,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"whitesmith:master","ref":"master","sha":"96a9c7b20b53a37c2029ed183e411411b80c8947","user":{"login":"whitesmith","id":5413174,"avatar_url":"https://avatars.githubusercontent.com/u/5413174?v=3","gravatar_id":"","url":"https://api.github.com/users/whitesmith","html_url":"https://github.com/whitesmith","followers_url":"https://api.github.com/users/whitesmith/followers","following_url":"https://api.github.com/users/whitesmith/following{/other_user}","gists_url":"https://api.github.com/users/whitesmith/gists{/gist_id}","starred_url":"https://api.github.com/users/whitesmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitesmith/subscriptions","organizations_url":"https://api.github.com/users/whitesmith/orgs","repos_url":"https://api.github.com/users/whitesmith/repos","events_url":"https://api.github.com/users/whitesmith/events{/privacy}","received_events_url":"https://api.github.com/users/whitesmith/received_events","type":"Organization","site_admin":false},"repo":{"id":13445293,"name":"rubycritic","full_name":"whitesmith/rubycritic","owner":{"login":"whitesmith","id":5413174,"avatar_url":"https://avatars.githubusercontent.com/u/5413174?v=3","gravatar_id":"","url":"https://api.github.com/users/whitesmith","html_url":"https://github.com/whitesmith","followers_url":"https://api.github.com/users/whitesmith/followers","following_url":"https://api.github.com/users/whitesmith/following{/other_user}","gists_url":"https://api.github.com/users/whitesmith/gists{/gist_id}","starred_url":"https://api.github.com/users/whitesmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitesmith/subscriptions","organizations_url":"https://api.github.com/users/whitesmith/orgs","repos_url":"https://api.github.com/users/whitesmith/repos","events_url":"https://api.github.com/users/whitesmith/events{/privacy}","received_events_url":"https://api.github.com/users/whitesmith/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/whitesmith/rubycritic","description":"A Ruby code quality reporter","fork":false,"url":"https://api.github.com/repos/whitesmith/rubycritic","forks_url":"https://api.github.com/repos/whitesmith/rubycritic/forks","keys_url":"https://api.github.com/repos/whitesmith/rubycritic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/whitesmith/rubycritic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/whitesmith/rubycritic/teams","hooks_url":"https://api.github.com/repos/whitesmith/rubycritic/hooks","issue_events_url":"https://api.github.com/repos/whitesmith/rubycritic/issues/events{/number}","events_url":"https://api.github.com/repos/whitesmith/rubycritic/events","assignees_url":"https://api.github.com/repos/whitesmith/rubycritic/assignees{/user}","branches_url":"https://api.github.com/repos/whitesmith/rubycritic/branches{/branch}","tags_url":"https://api.github.com/repos/whitesmith/rubycritic/tags","blobs_url":"https://api.github.com/repos/whitesmith/rubycritic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/whitesmith/rubycritic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/whitesmith/rubycritic/git/refs{/sha}","trees_url":"https://api.github.com/repos/whitesmith/rubycritic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/whitesmith/rubycritic/statuses/{sha}","languages_url":"https://api.github.com/repos/whitesmith/rubycritic/languages","stargazers_url":"https://api.github.com/repos/whitesmith/rubycritic/stargazers","contributors_url":"https://api.github.com/repos/whitesmith/rubycritic/contributors","subscribers_url":"https://api.github.com/repos/whitesmith/rubycritic/subscribers","subscription_url":"https://api.github.com/repos/whitesmith/rubycritic/subscription","commits_url":"https://api.github.com/repos/whitesmith/rubycritic/commits{/sha}","git_commits_url":"https://api.github.com/repos/whitesmith/rubycritic/git/commits{/sha}","comments_url":"https://api.github.com/repos/whitesmith/rubycritic/comments{/number}","issue_comment_url":"https://api.github.com/repos/whitesmith/rubycritic/issues/comments{/number}","contents_url":"https://api.github.com/repos/whitesmith/rubycritic/contents/{+path}","compare_url":"https://api.github.com/repos/whitesmith/rubycritic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/whitesmith/rubycritic/merges","archive_url":"https://api.github.com/repos/whitesmith/rubycritic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/whitesmith/rubycritic/downloads","issues_url":"https://api.github.com/repos/whitesmith/rubycritic/issues{/number}","pulls_url":"https://api.github.com/repos/whitesmith/rubycritic/pulls{/number}","milestones_url":"https://api.github.com/repos/whitesmith/rubycritic/milestones{/number}","notifications_url":"https://api.github.com/repos/whitesmith/rubycritic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/whitesmith/rubycritic/labels{/name}","releases_url":"https://api.github.com/repos/whitesmith/rubycritic/releases{/id}","created_at":"2013-10-09T14:58:31Z","updated_at":"2015-12-30T12:10:44Z","pushed_at":"2015-12-30T19:17:18Z","git_url":"git://github.com/whitesmith/rubycritic.git","ssh_url":"git@github.com:whitesmith/rubycritic.git","clone_url":"https://github.com/whitesmith/rubycritic.git","svn_url":"https://github.com/whitesmith/rubycritic","homepage":"","size":774,"stargazers_count":1172,"watchers_count":1172,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":22,"forks":68,"open_issues":22,"watchers":1172,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/whitesmith/rubycritic/pulls/91"},"html":{"href":"https://github.com/whitesmith/rubycritic/pull/91"},"issue":{"href":"https://api.github.com/repos/whitesmith/rubycritic/issues/91"},"comments":{"href":"https://api.github.com/repos/whitesmith/rubycritic/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/whitesmith/rubycritic/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/whitesmith/rubycritic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/whitesmith/rubycritic/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/whitesmith/rubycritic/statuses/79b9f8bddd5e2cbe01ac9b8e567d05fa3634e74e"}}}}