[{"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            { onlyReportCatchAllIfEquivalentToSinglePattern = True }\n        ]\n\n\n### reported\n\n    type Resource\n        = Loaded String\n        | FailedToLoad String\n        | Loading\n\n    -- with any configuration\n    displayResource : Resource -> Ui\n    displayResource resource =\n        case resource of\n            Loaded text ->\n                Ui.text text\n\n            FailedToLoad error ->\n                Ui.error error\n\n            _ ->\n                Ui.spinner\n\n    -- only with { onlyReportCatchAllIfEquivalentToSinglePattern = False }\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    -- with any configuration\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\n    -- only with { onlyReportCatchAllIfEquivalentToSinglePattern = True }\n    displayResource : Resource -> Ui\n    displayResource resource =\n        case resource of\n            Loaded text ->\n                Ui.text text\n\n            _ ->\n                Ui.spinner\n\nThis works for variant, list and cons patterns.\n\n","type":"{ onlyReportCatchAllIfEquivalentToSinglePattern : Basics.Bool } -> Review.Rule.Rule"}],"binops":[]}]