# `Markup.Carve.LintWarning`
[🔗](https://github.com/paradox460/markup/blob/markup_carve-v0.1.0/markup_carve/lib/markup/carve/lint_warning.ex#L1)

A diagnostic returned by `Markup.Carve.lint/2`.

`rule` is carve-rs's stable rule id, e.g. `"unattached-block-attribute"`, and
`severity` its catalog severity (`"warning"`, `"info"`, ...). `line` and
`column` are 1-based. `start_offset` and `end_offset` are 0-based UTF-8
_byte_ offsets into the linted source, end exclusive, so the flagged text is
`binary_part(source, w.start_offset, w.end_offset - w.start_offset)`. A
diagnostic about the whole document has no range, and these are `nil`.

# `t`

```elixir
@type t() :: %Markup.Carve.LintWarning{
  column: pos_integer() | nil,
  end_offset: non_neg_integer() | nil,
  line: pos_integer() | nil,
  message: String.t(),
  rule: String.t(),
  severity: String.t(),
  start_offset: non_neg_integer() | nil
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
