{"action":"opened","issue":{"url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues/211","labels_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues/211/comments","events_url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/issues/211/events","html_url":"https://github.com/Vannevelj/VSDiagnostics/issues/211","id":102140026,"number":211,"title":"Implement SwitchDoesNotHandleAllEnumOptions","user":{"login":"Vannevelj","id":2777107,"avatar_url":"https://avatars.githubusercontent.com/u/2777107?v=3","gravatar_id":"","url":"https://api.github.com/users/Vannevelj","html_url":"https://github.com/Vannevelj","followers_url":"https://api.github.com/users/Vannevelj/followers","following_url":"https://api.github.com/users/Vannevelj/following{/other_user}","gists_url":"https://api.github.com/users/Vannevelj/gists{/gist_id}","starred_url":"https://api.github.com/users/Vannevelj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vannevelj/subscriptions","organizations_url":"https://api.github.com/users/Vannevelj/orgs","repos_url":"https://api.github.com/users/Vannevelj/repos","events_url":"https://api.github.com/users/Vannevelj/events{/privacy}","received_events_url":"https://api.github.com/users/Vannevelj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Vannevelj/VSDiagnostics/labels/feature","name":"feature","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-20T13:34:57Z","updated_at":"2015-08-20T13:34:57Z","closed_at":null,"body":"Show a warning when we `switch` over an enum but not all enum options are covered by a `case` statement.\r\n\r\nFor example:\r\n\r\n\tvoid Main()\r\n\t{\r\n\t\tvar e = MyEnum.A;\r\n\t\tswitch(e)\r\n\t\t{\r\n\t\t\tcase A: break;\r\n\t\t\tcase B: break;\r\n\t\t\tdefault: break;\r\n\t\t}\r\n\t}\r\n\t\r\n\tenum MyEnum\r\n\t{\r\n\t\tA,\r\n\t\tB,\r\n\t\tC\r\n\t}\r\n"}}