Diagnostic
is a single lint finding: the rule that fired, a
human-readable message, the source text of the offending form, and
the form's start line and col as captured by the parser.
context
(Fn [(Ref Diagnostic a)] (Ref String a))
gets the context property of a Diagnostic.
delete
(Fn [Diagnostic] ())
deletes a Diagnostic. Should usually not be called manually.
message
(Fn [(Ref Diagnostic a)] (Ref String a))
gets the message property of a Diagnostic.
set-col!
(Fn [(Ref Diagnostic a), Int] ())
sets the col property of a Diagnostic in place.
set-context
(Fn [Diagnostic, String] Diagnostic)
sets the context property of a Diagnostic.
set-context!
(Fn [(Ref Diagnostic a), String] ())
sets the context property of a Diagnostic in place.
set-line!
(Fn [(Ref Diagnostic a), Int] ())
sets the line property of a Diagnostic in place.
set-message
(Fn [Diagnostic, String] Diagnostic)
sets the message property of a Diagnostic.
set-message!
(Fn [(Ref Diagnostic a), String] ())
sets the message property of a Diagnostic in place.
set-rule!
(Fn [(Ref Diagnostic a), String] ())
sets the rule property of a Diagnostic in place.
str
(Fn [(Ref Diagnostic a)] String)
(str d)
renders a diagnostic as line:col: [rule] message
followed by an indented at: line with the offending form's text.
update-col
(Fn [Diagnostic, (Ref (Fn [Int] Int a) b)] Diagnostic)
updates the col property of a Diagnostic using a function f.
update-context
(Fn [Diagnostic, (Ref (Fn [String] String a) b)] Diagnostic)
updates the context property of a Diagnostic using a function f.
update-line
(Fn [Diagnostic, (Ref (Fn [Int] Int a) b)] Diagnostic)
updates the line property of a Diagnostic using a function f.
update-message
(Fn [Diagnostic, (Ref (Fn [String] String a) b)] Diagnostic)
updates the message property of a Diagnostic using a function f.
update-rule
(Fn [Diagnostic, (Ref (Fn [String] String a) b)] Diagnostic)
updates the rule property of a Diagnostic using a function f.