Harper.Suggestion (harper v0.1.1)

Copy Markdown View Source

A suggested edit that resolves a Harper.Lint, applied over the lint's span.

  • :kind — one of:
    • "replace" — replace the span's text with :text.
    • "insert_after" — insert :text immediately after the span.
    • "remove" — delete the span's text (:text is "").
  • :text — the replacement/insertion text (empty for "remove").

Summary

Types

kind()

@type kind() :: String.t()

t()

@type t() :: %Harper.Suggestion{kind: kind(), text: String.t()}