metosin / malli

High-performance data-driven data specification library for Clojure/Script.
Eclipse Public License 2.0
1.43k stars 204 forks source link

Make clj-kondo dir configurable #1062

Closed simonacca closed 4 weeks ago

simonacca commented 1 month ago

Hello, in a monorepo setting I had the need to configure the malli-kondo integration to accommodate the clj-kondo dir being in a non-standard location.

This can of course already be achieved by overwriting a few functions from malli.clj-kondo and malli.dev. The following changes would make this kind of setup supported out of the box.

I'd also support merging only the first commit in case you don't want to merge the instrument! options and the emit! ones.

p.s. this is the monorepo structure in question:

├── apps
│   ├── app1    <- clj/cljs interpreter is started here
│   └── app2
└── clj_src
    ├── .clj-kondo
    └── my-corp     <- all code lives here
ikitommi commented 4 weeks ago

makes sense, thanks!