Fork me on GitHub

What would be the best way to tell clj-kondo to purge/refresh a project specific cache? I’m doing multi-library development for an internal project and our kondo caches seem to get out of sync quite easily for some reason when switching branches, probably at least partially due to how quickly our snapshot releases change.


@suomi.esko You can rm -rf .clj-kondo/.cache


I don’t think I’m ready to live in the danger zone of putting rm -rf into git hook 😅


@suomi.esko mv .clj-kondo/.cache .clj-kondo/.cache-old? ;)

🐽 3

That’s better 🙂 But cool, throwing the entire thing out probably works the best in this case anyway 👍


Merged to master: Binaries can be obtained by navigating from Github to the CircleCI builds


is there any way to bind clj-kondo to F2 in intellij/cursive so that you can iterate through the issues found by cursive and the issues found by clj-kondo?


@mbjarland I think this depends on the plugin you're using for clj-kondo linting in IntelliJ. you might be able to find it in their docs


file watchers, but ok


Some people use FileWatcher, ah yes ok. So maybe there's something in the menu for FW


ok for posterity, in intellij you can go to Settings > Editor > Inspections and find File Watcher Problems and change the file watcher problem severity from "Weak Warning" to "Warning" and then the clj-kondo warnings will be included in the normal list of warnings reported (usually cycled through with F2 and visible in the top right file status widget)

🚀 3

The weak warnings are reported as well, but not cycle-able via F2

Karol Wójcik15:10:14

Is there a hook which may support following macro?

(rfori [[index item] [1 2 3 4 5])]
   (println index item))


I think you could just use {:lint-as {your.macro/rfori clojure.core/for}} for this, as clj-kondo doesn't care about your implementation as long as the syntax matches

❤️ 3
Karol Wójcik15:10:17

Works perfectly!