module Report:sig..end
type kind =
| |
Info |
(* |
Lowest level of element.
| *) |
| |
Warning |
(* |
Medium level of element.
| *) |
| |
Error |
(* |
Highest level of element.
| *) |
val string_of_kind : kind -> stringtype element = private {
|
kind : |
(* |
Kind (level) of element.
| *) |
|
category : |
(* |
Category of element.
| *) |
|
check : |
(* |
Check of element.
| *) |
|
filename : |
(* |
Location of violation.
| *) |
|
line : |
(* |
Location of violation.
| *) |
|
column : |
(* |
Location of violation.
| *) |
|
message : |
(* |
Short description of violation.
| *) |
type t
val empty : tval statistics : t -> int * int * intInfo, Warning, and Error element in the passed
report.val add : kind ->
CategoryName.t ->
CheckName.t -> string -> int -> int option -> string -> t -> tadd knd cat chk fn ln cn msg x returns x augmented with a new element,
duplicate elements being discarded.
The added element is defined by:
knd;cat;chk;fn;ln;cn;msg.val concat : t -> t -> tval concat_list : t list -> tval filter : bool -> bool -> bool -> Ignore.t list -> t -> tfilter no_info no_warning no_error il rep filters the report elements of
rep by ignoring elements in il; additionally:no_info indicates whether Info elements are ignored;no_warning indicates whether Warning elements are ignored;no_error indicates whether Error elements are ignored.val iter : (element -> unit) -> t -> unititer f rep iterates over the report elements of rep by applying f.val map : (element -> 'a) -> t -> 'a listmap f rep maps the report elements of rep through f.val fold : (element -> 'a -> 'a) -> 'a -> t -> 'afold f z rep folds over the report elements of rep, starting with
value z and using function f.val split_by_file : t -> (string * t) list