clj-kondo 2025-03-07

Is there a linter to flag unnecessary parens, like (-> x (fizz) (:foo) (first) (frob))?

That’s funny because if there was a linter for this, I’d want it to do the opposite and flag optional parens that’s are MISSING

πŸ‘ 1
πŸ™‚ 3
1

The https://github.com/bbatsov/clojure-style-guide?tab=readme-ov-file#threading-macros-and-optional-parentheses them, but as long as the project is consistent I could see options to go either way.

πŸ‘ 1

imo this is one of the cases where clojure (and the style guide) gets it wrong πŸ˜•

I agree with the guide, but to each their own. Back to the original question, is there such a linter option? I read through the docs but don't see one.

ya i'm not seeing one either, sorry πŸ˜•

πŸ‘ 1

cljfmt might have something for that?

> this is one of the cases where clojure (and the style guide) gets it wrong this kind of thing is why i wish "the" style guide wasn't named such that it sounds like an official one true way. (sorry to continue the derail, Mark)