Kakadu / zanuda

OCaml linter
GNU Lesser General Public License v3.0
63 stars 8 forks source link

Integrate with dune to apply all fixes #23

Open petr-tik opened 1 year ago

petr-tik commented 1 year ago

Thanks for building such an awesome linter for OCaml and taking inspiration from clippy.

My favourite clippy feature is the ability to apply all lints (that have fixits) with 1 cargo command cargo clippy --fix. Documented below.

https://doc.rust-lang.org/stable/clippy/usage.html#automatically-applying-clippy-suggestions

Being able to apply all lints to the whole repo will increase adoption by onboarding completely new projects to use zanuda.

dune has a built-in @lint alias

https://github.com/ocaml/dune/issues/3471#issuecomment-627453566

Kakadu commented 9 months ago

We are trying to implement something like this in https://github.com/Kakadu/zanuda/pull/37 @petr-tik, Could you help with review?