clj-kondo

https://github.com/clj-kondo/clj-kondo
borkdude 2021-01-29T10:31:11.062500Z

Merged support for the core.match/match macro to master now. https://github.com/clj-kondo/clj-kondo/issues/496 Give it a try if you're using this lib.

dharrigan 2021-01-29T10:40:52.063300Z

@borkdude I can have a stab at 1149. Feel free to ping me as a DM 🙂 I may have a bit of time over the weekend.

borkdude 2021-01-29T10:42:52.064200Z

Sure! The relevant section is here: https://github.com/clj-kondo/clj-kondo/blob/fe45dd7710483965f703a01b52cef8ac6977748e/src/clj_kondo/impl/linters.clj#L481 All used bindings are available there. So when there is a binding that is used and starts with an underscore, a warning should be emitted.

borkdude 2021-01-29T10:44:35.065200Z

The other relevant bit is here: https://github.com/clj-kondo/clj-kondo/blob/293f777bda157eaa1ebc75f9b2eb124fcf5b25a9/src/clj_kondo/impl/namespace.clj#L232 Maybe that is also a good spot to do it.

borkdude 2021-01-29T10:44:53.065700Z

Let me know if you have any questions.

dharrigan 2021-01-29T14:25:35.066200Z

Right, have a test and it's failing, which means I know where to make it work 🙂