package dunolint
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=d92e0d705b661ea12b22dcc9bdd83815c507218c1de085d75140fd47bea0c5ec
sha512=fdf4fbb4906aba4aeab766dfa5202b64950c71c988b1b84363319dd05edb93b34142355f968a5687057977e40defdced20a2a17ee0614565096eb123655621f3
doc/dunolint.dunolinter/Dunolinter/Enforce_result/index.html
Module Dunolinter.Enforce_resultSource
A type to describe the result of an attempt to enforce a predicate during linting.
type t = | Ok(*The enforcement of the predicate was successful, or perhaps the required condition was already verified without requiring to perform any change.
*)| Fail(*The enforcement of such predicate cannot succeed and requires the user's intervention.
*)| Eval(*This is a special value that instructs the call site to check with
*)evalwhether the required condition holds. If the evaluation returnsTrue, the end result is the same as for anOkstatus. If the evaluation returnsFalse, this will result in aFail. If the evaluation isUndefined, this results in anUnapplicablestatus.| Unapplicable(*The predicate in question does not apply to the stanza currently at hand. For example, it starts with a selector that does not match the stanza being linted. Unapplicable predicates are ignored by dunolint.
*)