Installs pre-commit hooks for OCaml projects that run dune fmt automatically
1
fork

Configure Feed

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

fix(lint): remove redundant function prefixes (E325/E331)

Rename find_self -> self, make_connection_pools -> connection_pools.

+2 -2
+2 -2
lib/precommit.ml
··· 271 271 else rest 272 272 else abs_path 273 273 274 - let find_self ctx dir entries = 274 + let self ctx dir entries = 275 275 if List.mem ".git" entries then [ dir ] 276 276 else if is_inside_git_repo ~cwd:ctx.cwd ~fs:ctx.fs dir then 277 277 match git_root ~cwd:ctx.cwd ~fs:ctx.fs dir with ··· 289 289 try Eio.Path.read_dir Eio.Path.(ctx.cwd / dir) with Eio.Io _ -> [] 290 290 in 291 291 let child_path name = if dir = "." then name else Filename.concat dir name in 292 - let self = find_self ctx dir entries in 292 + let self = self ctx dir entries in 293 293 (* Only descend into children if we haven't found a git root yet *) 294 294 let children = 295 295 if self <> [] then []