What's the OCaml equivalent for HLint?

I’ve been using OCaml for quite a while and one thing I’ve been looking for is a good linter, ideally something like the Haskell HLint.

I found this which seems quite old - latest release in 2012.

Sorry if this has been raised previously.

1 Like

Something similar, but not as featureful, is ppx_js_style. It’s somewhat opinionated, but the checks aren’t Jane Street-specific.

Aside from Mascot and ppx_js_style, it seems that ocp-lint is actively maintained by the folks at OcamlPro. I personally only use ocamlformat so I can’t vouch for it, but it seems promising.