Fork me on GitHub
#clj-kondo
<
2020-10-08
>
eskos07:10:00

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.

borkdude07:10:40

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

eskos07:10:58

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

borkdude07:10:54

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

🐽 3
eskos07:10:49

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

borkdude09:10:55

Merged to master: https://github.com/borkdude/clj-kondo/blob/master/doc/config.md#shadowed-var Binaries can be obtained by navigating from Github to the CircleCI builds

mbjarland14:10:34

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?

borkdude14:10:33

@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

mbjarland14:10:50

file watchers, but ok

borkdude14:10:02

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

mbjarland14:10:33

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
mbjarland14:10:24

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))

borkdude15:10:48

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!