def Problem.because
bend-lint-rules@0.2.0.0 · lib/linter/directives.bend:446
import bend-lint-rules@0.2.0.0/lib/linter/directives.bend as Directives
import Base
import bend-lint-api@0.2.0.0/shared/lists.bend as Lists
446def Problem.because(action: Action, scope: Scope, reasons: List<&2, String>) -> Maybe<&2, String>:
447 match action scope reasons:
448 case Disable{} End{} _:
449 None{}
450 case Disable{} _ Con{r, Con{b, more}}:
451 Lists.when(String, String.is_empty(b), "Say why it is not an expect, after " ++ Draft.label())
452 case Disable{} _ _:
453 Some{
454 "A disable says why it is not an expect, after its reason: " ++ Draft.label() ++ " <why>"
455 }
456 case _ _ _:
457 None{}