{"action":"closed","issue":{"url":"https://api.github.com/repos/code-cracker/code-cracker/issues/519","labels_url":"https://api.github.com/repos/code-cracker/code-cracker/issues/519/labels{/name}","comments_url":"https://api.github.com/repos/code-cracker/code-cracker/issues/519/comments","events_url":"https://api.github.com/repos/code-cracker/code-cracker/issues/519/events","html_url":"https://github.com/code-cracker/code-cracker/issues/519","id":107480753,"number":519,"title":"CC0039 must not be raised if the variable is declared inside the loop","user":{"login":"wertzui","id":4849642,"avatar_url":"https://avatars.githubusercontent.com/u/4849642?v=3","gravatar_id":"","url":"https://api.github.com/users/wertzui","html_url":"https://github.com/wertzui","followers_url":"https://api.github.com/users/wertzui/followers","following_url":"https://api.github.com/users/wertzui/following{/other_user}","gists_url":"https://api.github.com/users/wertzui/gists{/gist_id}","starred_url":"https://api.github.com/users/wertzui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wertzui/subscriptions","organizations_url":"https://api.github.com/users/wertzui/orgs","repos_url":"https://api.github.com/users/wertzui/repos","events_url":"https://api.github.com/users/wertzui/events{/privacy}","received_events_url":"https://api.github.com/users/wertzui/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-21T10:05:15Z","updated_at":"2015-09-30T02:14:50Z","closed_at":"2015-09-30T02:14:50Z","body":"    foreach(var a in b)\r\n    {\r\n        var text = \"foo\";\r\n        text += \"bar\";\r\n    }\r\n\r\nWill raise CC0039 which is incorrect.\r\nIn addition the refactoring will fail because text is declared inside the loop."}}