{"action":"created","issue":{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/2048","labels_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/2048/labels{/name}","comments_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/2048/comments","events_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/2048/events","html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/2048","id":127212296,"number":2048,"title":"SA1118 doesn't allow to write anonymous object (or object with property initialization) on multiple lines.","user":{"login":"mpawelski","id":2056282,"avatar_url":"https://avatars.githubusercontent.com/u/2056282?v=3","gravatar_id":"","url":"https://api.github.com/users/mpawelski","html_url":"https://github.com/mpawelski","followers_url":"https://api.github.com/users/mpawelski/followers","following_url":"https://api.github.com/users/mpawelski/following{/other_user}","gists_url":"https://api.github.com/users/mpawelski/gists{/gist_id}","starred_url":"https://api.github.com/users/mpawelski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpawelski/subscriptions","organizations_url":"https://api.github.com/users/mpawelski/orgs","repos_url":"https://api.github.com/users/mpawelski/repos","events_url":"https://api.github.com/users/mpawelski/events{/privacy}","received_events_url":"https://api.github.com/users/mpawelski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/labels/needs%20discussion","name":"needs discussion","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-18T11:58:11Z","updated_at":"2016-01-19T17:56:26Z","closed_at":null,"body":"This code:\r\n\r\n```csharp\r\n          Test(\r\n                \"as\",\r\n                new\r\n                {\r\n                    foo = 1, bar = 2\r\n                });\r\n```\r\n\r\nand this:\r\n\r\n```csharp\r\n          Test(\r\n                \"as\",\r\n                new MyObject\r\n                {\r\n                    Foo = 1\r\n                });\r\n```\r\n\r\n for this method:\r\n\r\n```csharp\r\n        public void Test(string test, object obj)\r\n        {\r\n        }\r\n```\r\n\r\n gives SA1118 warnig when in StyleCop Classic it didn't. I'm migrating from classic StyleCop and had to remove this rule because of that. I think it should be fixed.\r\n\r\nBTW Thanks for working on this projects! It's great that we can use StyleCop rules and use C#6 :)"},"comment":{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/comments/172933560","html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/2048#issuecomment-172933560","issue_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/2048","id":172933560,"user":{"login":"mpawelski","id":2056282,"avatar_url":"https://avatars.githubusercontent.com/u/2056282?v=3","gravatar_id":"","url":"https://api.github.com/users/mpawelski","html_url":"https://github.com/mpawelski","followers_url":"https://api.github.com/users/mpawelski/followers","following_url":"https://api.github.com/users/mpawelski/following{/other_user}","gists_url":"https://api.github.com/users/mpawelski/gists{/gist_id}","starred_url":"https://api.github.com/users/mpawelski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpawelski/subscriptions","organizations_url":"https://api.github.com/users/mpawelski/orgs","repos_url":"https://api.github.com/users/mpawelski/repos","events_url":"https://api.github.com/users/mpawelski/events{/privacy}","received_events_url":"https://api.github.com/users/mpawelski/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T17:56:26Z","updated_at":"2016-01-19T17:56:26Z","body":"Yes, it looks that current implementation matches documentation, but if we are going to leave it as it is I really think it should not be enabled by default (also discussed in #823). I don't think current implementation is that usable and I actually think that it decrease readability.\r\n\r\nI see that it was also discussed in #1597. So what actually StyleCop Classic implementation checks? Only if parameter is splitted by \"+\" and span multiple lines?."}}