clj-kondo

https://github.com/clj-kondo/clj-kondo
borkdude 2020-10-07T12:30:36.106Z

Some progress on the new :shadowed-var linter:

dharrigan 2020-10-07T12:36:20.106900Z

that's sooo nice!

2020-10-07T13:01:07.108Z

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

dominicm 2020-10-07T13:55:44.108400Z

Omnomnom?

borkdude 2020-10-07T14:02:46.109400Z

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

2020-10-07T14:04:35.109600Z

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

borkdude 2020-10-07T14:05:15.109800Z

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

borkdude 2020-10-07T15:30:24.110200Z

Got rid of all shadowed var warnings in clj-kondo 😅 https://github.com/borkdude/clj-kondo/commit/f8a43e1c5eb6e2ce840cb9656a3c43f788792b11

😂 1
borkdude 2020-10-07T15:47:33.110800Z

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

dharrigan 2020-10-07T15:47:48.111100Z

eating one's own dog food eh?

borkdude 2020-10-07T15:48:54.111900Z

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

borkdude 2020-10-07T19:19:54.114300Z

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

👍 2
borkdude 2020-10-07T19:22:16.115100Z

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.