{"action":"created","issue":{"url":"https://api.github.com/repos/realm/SwiftLint/issues/131","labels_url":"https://api.github.com/repos/realm/SwiftLint/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/realm/SwiftLint/issues/131/comments","events_url":"https://api.github.com/repos/realm/SwiftLint/issues/131/events","html_url":"https://github.com/realm/SwiftLint/issues/131","id":106258240,"number":131,"title":"No defaults in enum switch","user":{"login":"matrinox","id":4261980,"avatar_url":"https://avatars.githubusercontent.com/u/4261980?v=3","gravatar_id":"","url":"https://api.github.com/users/matrinox","html_url":"https://github.com/matrinox","followers_url":"https://api.github.com/users/matrinox/followers","following_url":"https://api.github.com/users/matrinox/following{/other_user}","gists_url":"https://api.github.com/users/matrinox/gists{/gist_id}","starred_url":"https://api.github.com/users/matrinox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrinox/subscriptions","organizations_url":"https://api.github.com/users/matrinox/orgs","repos_url":"https://api.github.com/users/matrinox/repos","events_url":"https://api.github.com/users/matrinox/events{/privacy}","received_events_url":"https://api.github.com/users/matrinox/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/SwiftLint/labels/rule-request","name":"rule-request","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-14T02:12:07Z","updated_at":"2015-10-05T08:17:43Z","closed_at":null,"body":"I find the exhaustive `enum` warnings from the compiler super helpful. It ensures that whenever a new `enum` case is added, every `switch` statement is updated. But this won't work well with `default`. Often times the `default` is there as an easy way to group behaviour for the other cases at the time. I'd like to see this added as a warning"},"comment":{"url":"https://api.github.com/repos/realm/SwiftLint/issues/comments/145460553","html_url":"https://github.com/realm/SwiftLint/issues/131#issuecomment-145460553","issue_url":"https://api.github.com/repos/realm/SwiftLint/issues/131","id":145460553,"user":{"login":"kevindelord","id":1124776,"avatar_url":"https://avatars.githubusercontent.com/u/1124776?v=3","gravatar_id":"","url":"https://api.github.com/users/kevindelord","html_url":"https://github.com/kevindelord","followers_url":"https://api.github.com/users/kevindelord/followers","following_url":"https://api.github.com/users/kevindelord/following{/other_user}","gists_url":"https://api.github.com/users/kevindelord/gists{/gist_id}","starred_url":"https://api.github.com/users/kevindelord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevindelord/subscriptions","organizations_url":"https://api.github.com/users/kevindelord/orgs","repos_url":"https://api.github.com/users/kevindelord/repos","events_url":"https://api.github.com/users/kevindelord/events{/privacy}","received_events_url":"https://api.github.com/users/kevindelord/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T08:17:43Z","updated_at":"2015-10-05T08:17:43Z","body":"+1 we also make sure to never use the `default` case in our enums :)"}}