Fork me on GitHub
#clj-kondo
<
2022-07-14
>
grahamcarlyle07:07:33

When using clj-kondo via a deps alias it would be nice if clj-kondo would pick up on the paths specified in other aliases for linting rather than having to specify them via the --lint parameter. A common case for me is a test alias which defines the test srcs in :extra-paths , which I have to duplicate in the --lint parameter for clj-kondo invocation. Am i missing a way of currently doing this?

borkdude07:07:09

clj-kondo does not automatically pick up directories to lint from deps.edn or project.clj

grahamcarlyle07:07:32

Is this worth adding as an issue? This existing issue seems related https://github.com/clj-kondo/clj-kondo/issues/1341

borkdude07:07:10

I'm not planning to support this, it would introduce magic I'd like to avoid

👍 1
grahamcarlyle07:07:28

By magic are you thinking as something not obvious to the user or for the way this would be implemented

borkdude07:07:01

It's better to be explicit in what you want to lint, imo.

👍 1
yoda 1