{"action":"opened","number":681,"pull_request":{"url":"https://api.github.com/repos/Beagle-PSE/Beagle/pulls/681","id":58910721,"html_url":"https://github.com/Beagle-PSE/Beagle/pull/681","diff_url":"https://github.com/Beagle-PSE/Beagle/pull/681.diff","patch_url":"https://github.com/Beagle-PSE/Beagle/pull/681.patch","issue_url":"https://api.github.com/repos/Beagle-PSE/Beagle/issues/681","number":681,"state":"open","locked":false,"title":"Formatter: Break Chained Method Calls","user":{"login":"jGleitz","id":4305652,"avatar_url":"https://avatars.githubusercontent.com/u/4305652?v=3","gravatar_id":"","url":"https://api.github.com/users/jGleitz","html_url":"https://github.com/jGleitz","followers_url":"https://api.github.com/users/jGleitz/followers","following_url":"https://api.github.com/users/jGleitz/following{/other_user}","gists_url":"https://api.github.com/users/jGleitz/gists{/gist_id}","starred_url":"https://api.github.com/users/jGleitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jGleitz/subscriptions","organizations_url":"https://api.github.com/users/jGleitz/orgs","repos_url":"https://api.github.com/users/jGleitz/repos","events_url":"https://api.github.com/users/jGleitz/events{/privacy}","received_events_url":"https://api.github.com/users/jGleitz/received_events","type":"User","site_admin":false},"body":"… if they don’t fit in one line.\r\n\r\nLooks like this\r\n\r\n```java\r\nnew Foo().bar().next().method().all().short();\r\n```\r\n\r\nand \r\n\r\n```java\r\nnew LongCalls()\r\n    .aVeryLongMethodThat(thatTakesLongArguments, very, long, arguments, no, stop, please, stop)\r\n    .shortInBetween()\r\n    .yetAnotherVeryLongCall(no, please, why, are, you, doing, this, just, please, stop, oh, god, no);\r\n```\r\n\r\nI think the below one is a lot more readable than our momentary formatting, which tries to fit as much in one line as possible. Especially because short calls can easily be overseen.","created_at":"2016-02-10T15:58:54Z","updated_at":"2016-02-10T15:58:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Beagle-PSE/Beagle/pulls/681/commits","review_comments_url":"https://api.github.com/repos/Beagle-PSE/Beagle/pulls/681/comments","review_comment_url":"https://api.github.com/repos/Beagle-PSE/Beagle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Beagle-PSE/Beagle/issues/681/comments","statuses_url":"https://api.github.com/repos/Beagle-PSE/Beagle/statuses/de2e74beb16ccd15275babe29b48f3377d96d184","head":{"label":"jGleitz:break-chains","ref":"break-chains","sha":"de2e74beb16ccd15275babe29b48f3377d96d184","user":{"login":"jGleitz","id":4305652,"avatar_url":"https://avatars.githubusercontent.com/u/4305652?v=3","gravatar_id":"","url":"https://api.github.com/users/jGleitz","html_url":"https://github.com/jGleitz","followers_url":"https://api.github.com/users/jGleitz/followers","following_url":"https://api.github.com/users/jGleitz/following{/other_user}","gists_url":"https://api.github.com/users/jGleitz/gists{/gist_id}","starred_url":"https://api.github.com/users/jGleitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jGleitz/subscriptions","organizations_url":"https://api.github.com/users/jGleitz/orgs","repos_url":"https://api.github.com/users/jGleitz/repos","events_url":"https://api.github.com/users/jGleitz/events{/privacy}","received_events_url":"https://api.github.com/users/jGleitz/received_events","type":"User","site_admin":false},"repo":{"id":45913731,"name":"Beagle","full_name":"jGleitz/Beagle","owner":{"login":"jGleitz","id":4305652,"avatar_url":"https://avatars.githubusercontent.com/u/4305652?v=3","gravatar_id":"","url":"https://api.github.com/users/jGleitz","html_url":"https://github.com/jGleitz","followers_url":"https://api.github.com/users/jGleitz/followers","following_url":"https://api.github.com/users/jGleitz/following{/other_user}","gists_url":"https://api.github.com/users/jGleitz/gists{/gist_id}","starred_url":"https://api.github.com/users/jGleitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jGleitz/subscriptions","organizations_url":"https://api.github.com/users/jGleitz/orgs","repos_url":"https://api.github.com/users/jGleitz/repos","events_url":"https://api.github.com/users/jGleitz/events{/privacy}","received_events_url":"https://api.github.com/users/jGleitz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jGleitz/Beagle","description":"","fork":true,"url":"https://api.github.com/repos/jGleitz/Beagle","forks_url":"https://api.github.com/repos/jGleitz/Beagle/forks","keys_url":"https://api.github.com/repos/jGleitz/Beagle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jGleitz/Beagle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jGleitz/Beagle/teams","hooks_url":"https://api.github.com/repos/jGleitz/Beagle/hooks","issue_events_url":"https://api.github.com/repos/jGleitz/Beagle/issues/events{/number}","events_url":"https://api.github.com/repos/jGleitz/Beagle/events","assignees_url":"https://api.github.com/repos/jGleitz/Beagle/assignees{/user}","branches_url":"https://api.github.com/repos/jGleitz/Beagle/branches{/branch}","tags_url":"https://api.github.com/repos/jGleitz/Beagle/tags","blobs_url":"https://api.github.com/repos/jGleitz/Beagle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jGleitz/Beagle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jGleitz/Beagle/git/refs{/sha}","trees_url":"https://api.github.com/repos/jGleitz/Beagle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jGleitz/Beagle/statuses/{sha}","languages_url":"https://api.github.com/repos/jGleitz/Beagle/languages","stargazers_url":"https://api.github.com/repos/jGleitz/Beagle/stargazers","contributors_url":"https://api.github.com/repos/jGleitz/Beagle/contributors","subscribers_url":"https://api.github.com/repos/jGleitz/Beagle/subscribers","subscription_url":"https://api.github.com/repos/jGleitz/Beagle/subscription","commits_url":"https://api.github.com/repos/jGleitz/Beagle/commits{/sha}","git_commits_url":"https://api.github.com/repos/jGleitz/Beagle/git/commits{/sha}","comments_url":"https://api.github.com/repos/jGleitz/Beagle/comments{/number}","issue_comment_url":"https://api.github.com/repos/jGleitz/Beagle/issues/comments{/number}","contents_url":"https://api.github.com/repos/jGleitz/Beagle/contents/{+path}","compare_url":"https://api.github.com/repos/jGleitz/Beagle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jGleitz/Beagle/merges","archive_url":"https://api.github.com/repos/jGleitz/Beagle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jGleitz/Beagle/downloads","issues_url":"https://api.github.com/repos/jGleitz/Beagle/issues{/number}","pulls_url":"https://api.github.com/repos/jGleitz/Beagle/pulls{/number}","milestones_url":"https://api.github.com/repos/jGleitz/Beagle/milestones{/number}","notifications_url":"https://api.github.com/repos/jGleitz/Beagle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jGleitz/Beagle/labels{/name}","releases_url":"https://api.github.com/repos/jGleitz/Beagle/releases{/id}","deployments_url":"https://api.github.com/repos/jGleitz/Beagle/deployments","created_at":"2015-11-10T13:32:29Z","updated_at":"2016-01-30T14:03:16Z","pushed_at":"2016-02-10T15:53:48Z","git_url":"git://github.com/jGleitz/Beagle.git","ssh_url":"git@github.com:jGleitz/Beagle.git","clone_url":"https://github.com/jGleitz/Beagle.git","svn_url":"https://github.com/jGleitz/Beagle","homepage":null,"size":79601,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Beagle-PSE:master","ref":"master","sha":"cb3e12081e8b659236a15b271a9e165a6587a343","user":{"login":"Beagle-PSE","id":15782263,"avatar_url":"https://avatars.githubusercontent.com/u/15782263?v=3","gravatar_id":"","url":"https://api.github.com/users/Beagle-PSE","html_url":"https://github.com/Beagle-PSE","followers_url":"https://api.github.com/users/Beagle-PSE/followers","following_url":"https://api.github.com/users/Beagle-PSE/following{/other_user}","gists_url":"https://api.github.com/users/Beagle-PSE/gists{/gist_id}","starred_url":"https://api.github.com/users/Beagle-PSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Beagle-PSE/subscriptions","organizations_url":"https://api.github.com/users/Beagle-PSE/orgs","repos_url":"https://api.github.com/users/Beagle-PSE/repos","events_url":"https://api.github.com/users/Beagle-PSE/events{/privacy}","received_events_url":"https://api.github.com/users/Beagle-PSE/received_events","type":"Organization","site_admin":false},"repo":{"id":45913711,"name":"Beagle","full_name":"Beagle-PSE/Beagle","owner":{"login":"Beagle-PSE","id":15782263,"avatar_url":"https://avatars.githubusercontent.com/u/15782263?v=3","gravatar_id":"","url":"https://api.github.com/users/Beagle-PSE","html_url":"https://github.com/Beagle-PSE","followers_url":"https://api.github.com/users/Beagle-PSE/followers","following_url":"https://api.github.com/users/Beagle-PSE/following{/other_user}","gists_url":"https://api.github.com/users/Beagle-PSE/gists{/gist_id}","starred_url":"https://api.github.com/users/Beagle-PSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Beagle-PSE/subscriptions","organizations_url":"https://api.github.com/users/Beagle-PSE/orgs","repos_url":"https://api.github.com/users/Beagle-PSE/repos","events_url":"https://api.github.com/users/Beagle-PSE/events{/privacy}","received_events_url":"https://api.github.com/users/Beagle-PSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Beagle-PSE/Beagle","description":"","fork":false,"url":"https://api.github.com/repos/Beagle-PSE/Beagle","forks_url":"https://api.github.com/repos/Beagle-PSE/Beagle/forks","keys_url":"https://api.github.com/repos/Beagle-PSE/Beagle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Beagle-PSE/Beagle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Beagle-PSE/Beagle/teams","hooks_url":"https://api.github.com/repos/Beagle-PSE/Beagle/hooks","issue_events_url":"https://api.github.com/repos/Beagle-PSE/Beagle/issues/events{/number}","events_url":"https://api.github.com/repos/Beagle-PSE/Beagle/events","assignees_url":"https://api.github.com/repos/Beagle-PSE/Beagle/assignees{/user}","branches_url":"https://api.github.com/repos/Beagle-PSE/Beagle/branches{/branch}","tags_url":"https://api.github.com/repos/Beagle-PSE/Beagle/tags","blobs_url":"https://api.github.com/repos/Beagle-PSE/Beagle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Beagle-PSE/Beagle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Beagle-PSE/Beagle/git/refs{/sha}","trees_url":"https://api.github.com/repos/Beagle-PSE/Beagle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Beagle-PSE/Beagle/statuses/{sha}","languages_url":"https://api.github.com/repos/Beagle-PSE/Beagle/languages","stargazers_url":"https://api.github.com/repos/Beagle-PSE/Beagle/stargazers","contributors_url":"https://api.github.com/repos/Beagle-PSE/Beagle/contributors","subscribers_url":"https://api.github.com/repos/Beagle-PSE/Beagle/subscribers","subscription_url":"https://api.github.com/repos/Beagle-PSE/Beagle/subscription","commits_url":"https://api.github.com/repos/Beagle-PSE/Beagle/commits{/sha}","git_commits_url":"https://api.github.com/repos/Beagle-PSE/Beagle/git/commits{/sha}","comments_url":"https://api.github.com/repos/Beagle-PSE/Beagle/comments{/number}","issue_comment_url":"https://api.github.com/repos/Beagle-PSE/Beagle/issues/comments{/number}","contents_url":"https://api.github.com/repos/Beagle-PSE/Beagle/contents/{+path}","compare_url":"https://api.github.com/repos/Beagle-PSE/Beagle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Beagle-PSE/Beagle/merges","archive_url":"https://api.github.com/repos/Beagle-PSE/Beagle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Beagle-PSE/Beagle/downloads","issues_url":"https://api.github.com/repos/Beagle-PSE/Beagle/issues{/number}","pulls_url":"https://api.github.com/repos/Beagle-PSE/Beagle/pulls{/number}","milestones_url":"https://api.github.com/repos/Beagle-PSE/Beagle/milestones{/number}","notifications_url":"https://api.github.com/repos/Beagle-PSE/Beagle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Beagle-PSE/Beagle/labels{/name}","releases_url":"https://api.github.com/repos/Beagle-PSE/Beagle/releases{/id}","deployments_url":"https://api.github.com/repos/Beagle-PSE/Beagle/deployments","created_at":"2015-11-10T13:32:13Z","updated_at":"2016-01-11T16:21:25Z","pushed_at":"2016-02-10T15:46:00Z","git_url":"git://github.com/Beagle-PSE/Beagle.git","ssh_url":"git@github.com:Beagle-PSE/Beagle.git","clone_url":"https://github.com/Beagle-PSE/Beagle.git","svn_url":"https://github.com/Beagle-PSE/Beagle","homepage":"http://beagle-pse.github.io/Beagle/","size":101511,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":30,"forks":7,"open_issues":30,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Beagle-PSE/Beagle/pulls/681"},"html":{"href":"https://github.com/Beagle-PSE/Beagle/pull/681"},"issue":{"href":"https://api.github.com/repos/Beagle-PSE/Beagle/issues/681"},"comments":{"href":"https://api.github.com/repos/Beagle-PSE/Beagle/issues/681/comments"},"review_comments":{"href":"https://api.github.com/repos/Beagle-PSE/Beagle/pulls/681/comments"},"review_comment":{"href":"https://api.github.com/repos/Beagle-PSE/Beagle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Beagle-PSE/Beagle/pulls/681/commits"},"statuses":{"href":"https://api.github.com/repos/Beagle-PSE/Beagle/statuses/de2e74beb16ccd15275babe29b48f3377d96d184"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":7,"changed_files":7}}