cryptosense / ocamllint

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

It's not possible to use `-package ocamllint.ppx` directly #12

Closed emillon closed 8 years ago

emillon commented 8 years ago

Using -package fails when another tool than a compiler is used. As a consequence it is necessary to use a rule like:

  flag ["ocaml"; "compile"] &
    S[ A"-package"
     ; A"ocamllint.ppx"
     ];

There should be a way to do a no-op when the tool in use is ocamldep, ocamldoc or the like.