[{"name":"NoCatchAllForSpecificRemainingPatterns","comment":"\n\n@docs rule\n\n","unions":[],"aliases":[],"values":[{"name":"rule","comment":" Enforces listing all specific cases if possible\n\n    config =\n        [ NoCatchAllForSpecificRemainingPatterns.rule\n        ]\n\n\n### reported\n\n    type Resource\n        = Loaded String\n        | FailedToLoad String\n        | Loading\n\n    displayResource : Resource -> Ui\n    displayResource resource =\n        case resource of\n            Loaded text ->\n                Ui.text text\n\n            _ ->\n                Ui.spinner\n\n    resourceIsLoaded : Resource -> Bool\n    resourceIsLoaded resource =\n        case resource of\n            Loaded _ ->\n                True\n\n            _ ->\n                False\n\n\n## allowed\n\n    displayResource : Resource -> Ui\n    displayResource resource =\n        case resource of\n            Loaded text ->\n                Ui.text text\n\n            FailedToLoad reason ->\n                Ui.text (\"failed to load due to \" ++ reason)\n\n            Loading ->\n                Ui.spinner\n\n    resourceIsLoaded : Resource -> Bool\n    resourceIsLoaded resource =\n        case resource of\n            Loaded _ ->\n                True\n\n            FailedToLoad _ ->\n                False\n\n            Loading ->\n                False\n\nThis works for variant, list and cons patterns.\n\n","type":"Review.Rule.Rule"}],"binops":[]}]