View Source Rewrite.Issue (rewrite v0.1.1)
An Issue
struct to track findings by the chechers.
Link to this section Summary
Functions
Creates a new %Issue{}
Link to this section Types
@type t() :: %Rewrite.Issue{ column: non_neg_integer() | nil, line: non_neg_integer() | nil, message: String.t() | nil, meta: term(), reporter: module() }
Link to this section Functions
Creates a new %Issue{}
examples
Examples
iex> Rewrite.Issue.new(Test, "kaput", line: 1, column: 1)
%Rewrite.Issue{reporter: Test, message: "kaput", line: 1, column: 1, meta: nil}
iex> Rewrite.Issue.new(Test, foo: "bar")
%Rewrite.Issue{reporter: Test, message: nil, line: nil, column: nil, meta: [foo: "bar"]}