{"action":"closed","issue":{"url":"https://api.github.com/repos/code-cracker/code-cracker/issues/501","labels_url":"https://api.github.com/repos/code-cracker/code-cracker/issues/501/labels{/name}","comments_url":"https://api.github.com/repos/code-cracker/code-cracker/issues/501/comments","events_url":"https://api.github.com/repos/code-cracker/code-cracker/issues/501/events","html_url":"https://github.com/code-cracker/code-cracker/issues/501","id":105288240,"number":501,"title":"BUG on CC0008 and CC0009 (ObjectInitializer) when used with collection","user":{"login":"giggio","id":334958,"avatar_url":"https://avatars.githubusercontent.com/u/334958?v=3","gravatar_id":"","url":"https://api.github.com/users/giggio","html_url":"https://github.com/giggio","followers_url":"https://api.github.com/users/giggio/followers","following_url":"https://api.github.com/users/giggio/following{/other_user}","gists_url":"https://api.github.com/users/giggio/gists{/gist_id}","starred_url":"https://api.github.com/users/giggio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giggio/subscriptions","organizations_url":"https://api.github.com/users/giggio/orgs","repos_url":"https://api.github.com/users/giggio/repos","events_url":"https://api.github.com/users/giggio/events{/privacy}","received_events_url":"https://api.github.com/users/giggio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/code-cracker/code-cracker/labels/2%20-%20Working","name":"2 - Working","color":"CCCCCC"},{"url":"https://api.github.com/repos/code-cracker/code-cracker/labels/analyzer","name":"analyzer","color":"0052cc"},{"url":"https://api.github.com/repos/code-cracker/code-cracker/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/code-cracker/code-cracker/labels/C%23","name":"C#","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"thorgeirk11","id":2693474,"avatar_url":"https://avatars.githubusercontent.com/u/2693474?v=3","gravatar_id":"","url":"https://api.github.com/users/thorgeirk11","html_url":"https://github.com/thorgeirk11","followers_url":"https://api.github.com/users/thorgeirk11/followers","following_url":"https://api.github.com/users/thorgeirk11/following{/other_user}","gists_url":"https://api.github.com/users/thorgeirk11/gists{/gist_id}","starred_url":"https://api.github.com/users/thorgeirk11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorgeirk11/subscriptions","organizations_url":"https://api.github.com/users/thorgeirk11/orgs","repos_url":"https://api.github.com/users/thorgeirk11/repos","events_url":"https://api.github.com/users/thorgeirk11/events{/privacy}","received_events_url":"https://api.github.com/users/thorgeirk11/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/code-cracker/code-cracker/milestones/11","html_url":"https://github.com/code-cracker/code-cracker/milestones/1.0.0","labels_url":"https://api.github.com/repos/code-cracker/code-cracker/milestones/11/labels","id":1335815,"number":11,"title":"1.0.0","description":"","creator":{"login":"giggio","id":334958,"avatar_url":"https://avatars.githubusercontent.com/u/334958?v=3","gravatar_id":"","url":"https://api.github.com/users/giggio","html_url":"https://github.com/giggio","followers_url":"https://api.github.com/users/giggio/followers","following_url":"https://api.github.com/users/giggio/following{/other_user}","gists_url":"https://api.github.com/users/giggio/gists{/gist_id}","starred_url":"https://api.github.com/users/giggio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giggio/subscriptions","organizations_url":"https://api.github.com/users/giggio/orgs","repos_url":"https://api.github.com/users/giggio/repos","events_url":"https://api.github.com/users/giggio/events{/privacy}","received_events_url":"https://api.github.com/users/giggio/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":5,"state":"open","created_at":"2015-10-03T00:39:32Z","updated_at":"2015-10-04T23:53:00Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-09-08T02:25:19Z","updated_at":"2015-10-04T23:53:00Z","closed_at":"2015-10-04T23:53:00Z","body":"`CC0008` will be incorrectly raised in this code:\r\n\r\n````csharp\r\nvar ys = new System.Collections.Generic.List<int> { 4 };\r\nys.Capacity = 3;\r\n````\r\n\r\n`CC0009` will be incorrectly raised in this code:\r\n\r\n````csharp\r\nnew System.Collections.Generic.List<int> ys;\r\nys = new System.Collections.Generic.List<int> { 4 };\r\nys.Capacity = 3;\r\n````\r\n\r\nThis will cause an error on the code fix, but the problem is with the analyzer, which is not checking initialization with a collection initializer."}}