{"action":"created","issue":{"url":"https://api.github.com/repos/scalameta/scalafmt/issues/1321","repository_url":"https://api.github.com/repos/scalameta/scalafmt","labels_url":"https://api.github.com/repos/scalameta/scalafmt/issues/1321/labels{/name}","comments_url":"https://api.github.com/repos/scalameta/scalafmt/issues/1321/comments","events_url":"https://api.github.com/repos/scalameta/scalafmt/issues/1321/events","html_url":"https://github.com/scalameta/scalafmt/issues/1321","id":388247901,"node_id":"MDU6SXNzdWUzODgyNDc5MDE=","number":1321,"title":"Feature request: Rewrite rule for \"function argument with parens and braces\"","user":{"login":"Daenyth","id":14644,"node_id":"MDQ6VXNlcjE0NjQ0","avatar_url":"https://avatars3.githubusercontent.com/u/14644?v=4","gravatar_id":"","url":"https://api.github.com/users/Daenyth","html_url":"https://github.com/Daenyth","followers_url":"https://api.github.com/users/Daenyth/followers","following_url":"https://api.github.com/users/Daenyth/following{/other_user}","gists_url":"https://api.github.com/users/Daenyth/gists{/gist_id}","starred_url":"https://api.github.com/users/Daenyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daenyth/subscriptions","organizations_url":"https://api.github.com/users/Daenyth/orgs","repos_url":"https://api.github.com/users/Daenyth/repos","events_url":"https://api.github.com/users/Daenyth/events{/privacy}","received_events_url":"https://api.github.com/users/Daenyth/received_events","type":"User","site_admin":false},"labels":[{"id":930681432,"node_id":"MDU6TGFiZWw5MzA2ODE0MzI=","url":"https://api.github.com/repos/scalameta/scalafmt/labels/revisit","name":"revisit","color":"e59cd4","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-06T14:51:51Z","updated_at":"2018-12-30T17:41:43Z","closed_at":"2018-12-30T17:41:43Z","author_association":"NONE","body":"I'd like scalafix to be able to detect when a single-argument parameter group where the parameter is a function (things like `map`, `flatMap`, etc) have redundant parens around function braces.\r\n\r\n```\r\n//before\r\nfoo.map(x => { blah(x) })\r\n//after\r\nfoo.map { x => blah(x) }\r\n```\r\n\r\nand\r\n```\r\n//before\r\nfoo.map({x => blah(x) })\r\n//after\r\nfoo.map { x => blah(x) }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/scalameta/scalafmt/issues/comments/450575787","html_url":"https://github.com/scalameta/scalafmt/issues/1321#issuecomment-450575787","issue_url":"https://api.github.com/repos/scalameta/scalafmt/issues/1321","id":450575787,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDU3NTc4Nw==","user":{"login":"olafurpg","id":1408093,"node_id":"MDQ6VXNlcjE0MDgwOTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1408093?v=4","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"created_at":"2018-12-30T17:41:43Z","updated_at":"2018-12-30T17:41:43Z","author_association":"MEMBER","body":"Thanks for reporting! I welcome contributions adding this functionality, please reopen if you would like to take a stab at implementing this."}}
{"actor":{"display_login":"olafurpg"}}