Fork me on GitHub
Ben Sless13:06:32

Is there a way to ignore comment blocks for analysis?


yes, :skip-comments true


A more recommended config is :config-in-comment {...} though, so you will still get linting, but can disable things

Ben Sless13:06:18

Nice, thanks!


The next release of clj-kondo will suppress redundant do in .cljc files if it's not redundant in one language branch. E.g.:

(do #?(:clj (+ 1 2 3)) (+ 4 5 6))
will no longer give a warning, although it would be redundant in the :cljs case