clj-kondo

https://github.com/clj-kondo/clj-kondo
dominicm 2020-11-22T09:00:30Z

@borkdude I definitely don't have alternatives when I'm suggesting a lint rule though :). Other than writing better code.

borkdude 2020-11-22T09:35:43.001400Z

@dominicm For example with this issue: https://github.com/borkdude/clj-kondo/issues/1076 You suggest a specific linting rule, but an alternative could have been a more general rule like the existing :single-key-in. That linter came from a discussion that we had while going through a couple of alternatives and imo is better than specific linters for :get-in, :assoc-in etc.

dominicm 2020-11-22T09:37:01.002600Z

Ah. My creativity limits me here I'm afraid :)

borkdude 2020-11-22T09:38:58.003500Z

That's why it can be useful to throw ideas around here first. If seancorfield (I think it was him) hadn't suggested it, maybe it would have become the more specific one :)

dominicm 2020-11-22T09:59:36.004500Z

Happy to do that. I did start to, but didn't want to create noise.

borkdude 2020-11-22T10:00:45.005400Z

Personally I don't mind, certainly not if it contributes to the quality of clj-kondo

👍 1