IgniterCss.Validation (igniter_css v1.0.0)

Copy Markdown View Source

Whether a stylesheet is understood well enough to patch.

round_trips is the half that matters for safety: it is what every codemod checks before touching a file. A stylesheet that round-trips but has diagnostics is still patchable; one that does not round-trip is not, and IgniterCss will refuse rather than risk a wrong edit.

Summary

Types

t()

@type t() :: %IgniterCss.Validation{
  diagnostics: non_neg_integer(),
  message: String.t(),
  round_trips: boolean(),
  valid: boolean()
}