New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lint in parallel #632
Comments
This can be already done via Assuming standard leiningen project with # run 10 parallel processes
$ find src test -name "*.clj*" | xargs -n 1 -P 10 clj-kondo --lint
# or
$ find src test -name "*.clj*" | parallel -j 10 clj-kondo --lint However, this requires
Not sure if caching per process will make sense. After I disabled caching, speed was noticeable in multiple processes. |
borkdude
added a commit
that referenced
this issue
Aug 28, 2020
borkdude
added a commit
that referenced
this issue
Aug 31, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can speed up linting when providing a large classpath.
We borrowed some code from ClojureScript parallel-build:
https://github.com/clojure/clojurescript/blob/a15247a743d4d1c5d73224038f7289c447b38ca8/src/main/clojure/cljs/closure.clj#L1072
Without parallel:
With --parallel:
TODO:
swap!
where possible (e.g. calling reg-finding! insideclj-kondo.impl.namespace/reg-var!
).The text was updated successfully, but these errors were encountered: