clj-kondo 2024-09-10

I’ve been trying to get an exported config to work from a lib: https://git.sr.ht/~jomco/with-resources The configuration is here: https://git.sr.ht/~jomco/with-resources/tree/master/item/resources/clj-kondo.exports/nl.jomco/with-resources/config.edn But if I add that version as a dep:

nl.jomco/with-resources                        {:git/sha "07abf6f2aff7f289f58f3522897946c60ee67d8f"
                                                         :git/url ""}
and run clj-kondo the configuration is not copied
> clojure -M:lint --copy-configs --skip-lint
No configs copied.
linting took 19ms, errors: 0, warnings: 0

Is resources on the classpath?

oh yeah, you need to lint the dependencies, so --lint "$(clojure -Spath)"

that gives a lot of warnings about linting issues, but does not fix the isssue

you also need to add the --dependencies flag

--copy-configs doesn't do anything without the --dependencies flag

yes that helps, thanks!

am I using the right directory for the config.edn? nl.jomco/with-resources is the group/artifact so that is exactly the name of the directories, correct?