Fork me on GitHub
#clj-kondo
<
2020-10-07
>
borkdude12:10:36

Some progress on the new :shadowed-var linter:

dharrigan12:10:20

that's sooo nice!

hugod13:10:07

Is there a pattern for suppressing unused warnings in defmulti dispatch function arguments?

borkdude14:10:46

@hugod you can either start the args with underscores or use #_:clj-kondo/ignore or #_{:clj-kondo/ignore [:unused-binding]}

hugod14:10:35

Thanks. Might be nice to have a general option, since the dispatch fn arguments are seldom all used.

borkdude14:10:15

Feel free to post an issue about it and a proposal for the option

borkdude15:10:33

Lol, I thought it didn't work in one spot, but I had a (:refer-clojure :exclude [ns-name]) in that namespace :)

dharrigan15:10:48

eating one's own dog food eh?

borkdude15:10:54

if clj-kondo's own code isn't compliant, the build fails - it's a good smoke test

borkdude19:10:54

I just pushed a snapshot release of clj-kondo (`2020.09.10-20201007.185225-22`) that fixes a memory problem when using clj-kondo in a long running process. Users that use clj-kondo in a long running process (on the JVM, as a library or LSP server) are advised to update to this version. Details: https://github.com/borkdude/clj-kondo/issues/1036 I already pushed out a new version of the clj-kondo VSCode extension with the fix. cc @snoe @robert-stuttaford

👍 6
borkdude19:10:16

I will push a proper release later this week or next week, that will include some new features as well, but I didn't want to wait for this.