Opinionated OCaml linter with Merlin integration for code quality, naming conventions, and style checks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-merlin, merlint: adapt to upstream 5.7 API changes

Query_protocol.Enclosing now takes Msource.position * Msource.position
option instead of just Msource.position (merlin 5.7.0). Pass [None]
for the optional end bound to match the single-point query behavior
our enclosing helper needed.

merlint/lib/dune.ml caught Sexp.Error.Error, but Sexp.Error is the
Textloc.Error module and the exception is Textloc.Error, not a
constructor inside it. Catch Textloc.Error directly and depend on
the textloc library explicitly.

+3 -2
+2 -1
lib/dune
··· 16 16 tty 17 17 jsont 18 18 jsont.bytesrw 19 - sexpt)) 19 + sexpt 20 + textloc)) 20 21 21 22 (rule 22 23 (target examples.ml)
+1 -1
lib/dune.ml
··· 100 100 m "Parsed dune file %a: found %d stanzas" Fpath.pp filename 101 101 (List.length stanzas)); 102 102 stanzas 103 - with Sys_error _ | End_of_file | Sexp.Error.Error _ -> [] 103 + with Sys_error _ | End_of_file | Textloc.Error _ -> [] 104 104 105 105 (** Extract modules from a modules field *) 106 106 let extract_modules_field = function