I have some Malli specs in my Clojure project and in some cases I get the kondo squiggle when my args are out of spec and in others I do not. In both cases the input maps are well-defined maps with required keys. Is this a known issue? Is there way to refresh kondo or some other setting?
I suspect it has something to do with how this file is generated:
That config.edn file seems out of date. Is there a command to regenerate it?
Ah, I think https://github.com/metosin/malli?tab=readme-ov-file#clj-kondo is the secret.
(require '[malli.clj-kondo :as mc])
=> nil
(mc/emit!)
=> nil
If anyone knows, can I just do the above, or do I need to (mi/instrument!) as well?That's outside the scope of my malli knowledge sorry, I'm not sure how to provoke that update. I think refreshing the project in the deps toolwindow should cause Cursive to regenerate the kondo config, but IIRC for the malli types stuff there's a way to have them generated automatically.
I'm pretty sure the later versions of Malli have improved the automatic emit of Kondo config when using md/start
yes, please check malli.dev/start! - should start a process to keep malli & kondo types at sync. Calls both instrument! and emit!
Cool, thanks!