This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,16 @@
(* This can be used when testing formatting rules instead of calling the real
ocamlformat binary. But when doing so, be careful not to expose it to too
many tests because it will be also be used by `@fmt` in dune itself.
*)
let () =
let args =
Sys.argv
|> Array.to_list
|> List.tl
|> List.map (fun s -> Printf.sprintf "%S" s)
|> String.concat " "
in
Printf.eprintf "fake ocamlformat is running: %s\n" args;
Printf.printf "(* fake ocamlformat output *)"
;;