Fork me on GitHub
#clj-kondo
<
2021-06-13
>
robert-stuttaford06:06:14

it looks like with :skip-comments true at the project level, and :skip-comments false at the namespace level, unused requires doesn't see the usages inside comment forms in our dev/*.clj repl scripts, and continues to warn about unused namespaces when they are actually used inside the comments. (we skip comments on the project level as we have a pre-commit hook to prevent committing anything with linter warnings or errors) when i set false at the project level, it does see them, and stop warning about unused requires. by no means a showstopper, just wondering if this is something that is simple to fix, or inherent to the way the usage analysis is working?

borkdude08:06:51

I can reproduce the issue locally.

robert-stuttaford08:06:27

ok, so it's not just me 😄 thank you @U04V15CAJ!

borkdude10:06:08

@U0509NKGK Fixed on master. You could use a versioned snapshot version if you are using clj-kondo on the JVM in CI.

borkdude10:06:43

What I mean is: > Sending clj-kondo/clj-kondo/2021.06.02-SNAPSHOT/clj-kondo-2021.06.02-20210614.101046-4.jar (309k)

borkdude10:06:56

you could use the "2021.06.02-20210614.101046-4" part as the version