{"action":"created","issue":{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/1525","labels_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/1525/labels{/name}","comments_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/1525/comments","events_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/1525/events","html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/1525","id":107622470,"number":1525,"title":"New rule proposal: Rewrite single-line functions as expression-bodied function members","user":{"login":"nbarbettini","id":7525482,"avatar_url":"https://avatars.githubusercontent.com/u/7525482?v=3","gravatar_id":"","url":"https://api.github.com/users/nbarbettini","html_url":"https://github.com/nbarbettini","followers_url":"https://api.github.com/users/nbarbettini/followers","following_url":"https://api.github.com/users/nbarbettini/following{/other_user}","gists_url":"https://api.github.com/users/nbarbettini/gists{/gist_id}","starred_url":"https://api.github.com/users/nbarbettini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbarbettini/subscriptions","organizations_url":"https://api.github.com/users/nbarbettini/orgs","repos_url":"https://api.github.com/users/nbarbettini/repos","events_url":"https://api.github.com/users/nbarbettini/events{/privacy}","received_events_url":"https://api.github.com/users/nbarbettini/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/labels/needs%20discussion","name":"needs discussion","color":"f7c6c7"},{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/labels/new%20rule","name":"new rule","color":"207de5"},{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/labels/proposal","name":"proposal","color":"207de5"},{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/labels/readability","name":"readability","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-22T00:09:33Z","updated_at":"2015-09-22T19:39:04Z","closed_at":null,"body":"**Category**: Readability\r\n**Rule**: Functions where the only line starts with `return` can be rewritten as C# 6.0 expression-bodied function members\r\nRationale: Improve readability and maintainability of the code\r\n\r\nBad:\r\n\r\n```csharp\r\npublic string MyFavoriteNumber(int number)\r\n{\r\n    return $\"My favorite number is {number}!\";\r\n}\r\n```\r\n\r\nGood:\r\n\r\n```csharp\r\npublic string MyFavoriteNumber(int number) => $\"My favorite number is {number}!\";\r\n```\r\n\r\nInterested in hearing discussion on this one. I like the expression-bodied style a lot myself, but I'm not sure everyone feels the same way. Thoughts?"},"comment":{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/comments/142395904","html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/1525#issuecomment-142395904","issue_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/1525","id":142395904,"user":{"login":"nbarbettini","id":7525482,"avatar_url":"https://avatars.githubusercontent.com/u/7525482?v=3","gravatar_id":"","url":"https://api.github.com/users/nbarbettini","html_url":"https://github.com/nbarbettini","followers_url":"https://api.github.com/users/nbarbettini/followers","following_url":"https://api.github.com/users/nbarbettini/following{/other_user}","gists_url":"https://api.github.com/users/nbarbettini/gists{/gist_id}","starred_url":"https://api.github.com/users/nbarbettini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbarbettini/subscriptions","organizations_url":"https://api.github.com/users/nbarbettini/orgs","repos_url":"https://api.github.com/users/nbarbettini/repos","events_url":"https://api.github.com/users/nbarbettini/events{/privacy}","received_events_url":"https://api.github.com/users/nbarbettini/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T19:39:04Z","updated_at":"2015-09-22T19:39:04Z","body":"Cheers! Thanks for the feedback guys. Good points."}}