Declarative CSV codecs
0
fork

Configure Feed

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

fix merlint across 9 packages (Fmt.str, rename test_ functions)

contact, coordinate, cop1, cose, cpio, crc, crypto, csts, csvt:
all now pass merlint with 0 issues.

+3 -3
+2 -2
lib/csvt.ml
··· 21 21 | Missing_header -> "missing CSV header row" 22 22 | Missing_column name -> "missing required column: " ^ name 23 23 | Bad_value { row; column; value; msg } -> 24 - Printf.sprintf "row %d, column %s: bad value %S (%s)" row column value msg 24 + Fmt.str "row %d, column %s: bad value %S (%s)" row column value msg 25 25 | Truncated_row { row; expected; got } -> 26 - Printf.sprintf "row %d: expected %d columns, got %d" row expected got 26 + Fmt.str "row %d: expected %d columns, got %d" row expected got 27 27 | Encode_error msg -> "encode error: " ^ msg 28 28 29 29 let pp_error ppf e = Format.pp_print_string ppf (error_to_string e)
+1 -1
test/test_csvt.ml
··· 393 393 match int_of_string_opt ("0x" ^ s) with 394 394 | Some i -> Ok i 395 395 | None -> Error "not hex") 396 - ~enc:(fun i -> Printf.sprintf "%x" i) 396 + ~enc:(fun i -> Fmt.str "%x" i) 397 397 () 398 398 in 399 399 let codec =