Problem: some projects don't use Dune, while using Merlin, configured
with the .merlin file. flycheck-ocaml is only turned on if the
«dune-project» file is present though. As a result,
flycheck-ocaml is disabled for such projects.
Solution: enable the flycheck-ocaml checker if either dune-project
or .merlin are present.
In a round-about way this fixes #15. People who don't use Dune, now
don't need to create an empty dune-project to use the checker, which
was misleading.
Please, do note that I am not proficient in the OCaml ecosystem and have tested this only on a one-file project. That might entail needing extra attention when reviewing the PR :D
Problem: some projects don't use Dune, while using Merlin, configured with the .merlin file.
flycheck-ocaml
is only turned on if the «dune-project» file is present though. As a result,flycheck-ocaml
is disabled for such projects.Solution: enable the
flycheck-ocaml
checker if either dune-project or .merlin are present.In a round-about way this fixes #15. People who don't use Dune, now don't need to create an empty dune-project to use the checker, which was misleading.