# `Carvex.LintWarning`
[🔗](https://github.com/paradox460/carvex/blob/v0.0.1/lib/carvex/lint_warning.ex#L1)

A diagnostic returned by `Carvex.lint/2`.

`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)`.
`rule` is carve-rs's stable rule id, e.g. `"unattached-block-attribute"`.

# `t`

```elixir
@type t() :: %Carvex.LintWarning{
  column: pos_integer(),
  end_offset: non_neg_integer(),
  line: pos_integer(),
  message: String.t(),
  rule: String.t(),
  start_offset: non_neg_integer()
}
```

---

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