Using clj-kondo as a deps.edn dependency (with :main-opts ["-m" "clj-kondo.main" ,,,]) is there a way to pass the currently active paths?
I have aliases that add extra-paths and it'd be really nice if I didn't need to make an extra -lint alias for each of them
Is your question: how can I detect the source directories (i.e. :paths) of a clojure project at runtime?
I'd like to run clj-kondo like clj -M:frontend:lint Where the lint alias sets the kondo dependency and the main opts and the frontend alias adds some extra-paths Is this possible without manually copying all the paths into kondo's main opts?
you could parse the extra-deps out of the deps.edn and pass them as paths to lint?
clj-kondo doesn't have anything for this right now