Fork me on GitHub
#clj-kondo
<
2022-06-19
>
Ben Sless13:06:32

Is there a way to ignore comment blocks for analysis?

borkdude13:06:15

yes, :skip-comments true

borkdude13:06:37

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!

borkdude14:06:30

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