Fork me on GitHub
#clj-kondo
<
2022-04-07
>
Jason04:04:37

I've tried running clj-kondo --lint path --dependencies --parallel --copyconfigs --debug in a folder with an existing .clj-kondo/.cache/v1 folder but when I run clj-kondo --lint path --parallel --debug I'm under the impression it isn't using the cache. I do see that timestamps in the cache folder are being updated but it looks like every file in the debug output says Linting file: x and I'm pretty sure I've seen something about skipping files that were already linted in previous runs. I thought the second run should be skipping everything. Am I misunderstanding? Any ideas what is going on?

Jason05:04:01

I think I just misunderstood the point of the cache for clj-kondo, maybe the skip message I saw was when using clojure-lsp. I was trying to figure out an issue with clojure-lsp performance and thought it was due to kondo taking a long time but I'm pretty sure I missed the point.

borkdude12:04:42

The cache is not used to skip things, but to remember stuff from previous linting so it can be used to provide richer linting

👍 1