cryptosense / ocamllint

Detect common errors in OCaml code
BSD 2-Clause "Simplified" License
68 stars 3 forks source link

Only run when a compiler is running. #13

Closed emillon closed 8 years ago

emillon commented 8 years ago

If another tool (such as ocamldep) is running, do not run (or rather, run default_mapper).

There is a small caveat in the implementation: tool_name () will return a meaningful value only from the mapper itself. So, it is not possible to call it before the register call, because there it will return "_none_".

Closes #12