{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/dart_style/issues/452","labels_url":"https://api.github.com/repos/dart-lang/dart_style/issues/452/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/dart_style/issues/452/comments","events_url":"https://api.github.com/repos/dart-lang/dart_style/issues/452/events","html_url":"https://github.com/dart-lang/dart_style/issues/452","id":113119801,"number":452,"title":"Convert between => and { return ...; } based on line length","user":{"login":"Hixie","id":551196,"avatar_url":"https://avatars.githubusercontent.com/u/551196?v=3","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-24T00:02:44Z","updated_at":"2015-11-03T01:18:14Z","closed_at":"2015-11-03T01:18:14Z","body":"It would be interesting if the formatter could automatically add or remove braces based on the line length.\r\n\r\nFor example, turning this:\r\n\r\n```dart\r\n   bool get hasSize {\r\n     return true;\r\n   }\r\n   int crazyLongFunction(int withMany, int manyMany, int arguments) => withMany + manyMany + arguments +\r\n      withMany * 2 + manyMany * 5 + arguments;\r\n```\r\n\r\n...into this:\r\n\r\n```dart\r\n   bool get hasSize => true;\r\n   int crazyLongFunction(int withMany, int manyMany, int arguments) {\r\n     return withMany + manyMany + arguments + withMany * 2 + manyMany * 5 + arguments;\r\n   }\r\n```"},"comment":{"url":"https://api.github.com/repos/dart-lang/dart_style/issues/comments/153210289","html_url":"https://github.com/dart-lang/dart_style/issues/452#issuecomment-153210289","issue_url":"https://api.github.com/repos/dart-lang/dart_style/issues/452","id":153210289,"user":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T01:18:14Z","updated_at":"2015-11-03T01:18:14Z","body":"Like I mentioned on #451, this is out of scope for the formatter as it's currently specced."}}