clj-kondo

escherize 2025-07-18T16:17:06.559959Z

We noticed that deprecated cljc files didn't seem to get linted properly, I looked into it and created a reproduction https://github.com/escherize/kondo_cljc_deprecation_repro. It seems that cljc files do not get deprecation info saved in the cache, that means it's not happening right? If I move y.cljc -> y.clj and rerun it I do get the intended warning.

😍 2
borkdude 2025-07-18T16:20:44.416479Z

Thanks for the report. Worthy of a Github issue I'd say

escherize 2025-07-18T16:21:13.548029Z

Cool, I'll go ahead and open one. Thanks for the quick reply

escherize 2025-07-18T16:35:44.837279Z

https://github.com/clj-kondo/clj-kondo/issues/2568

🙏 1
fuad 2025-07-18T18:06:57.197339Z

Hi! Recently I noticed that, when running clj-kondo --lint ., I started to get some linting errors from the imported hook files:

+ clojure -M:clj-kondo --copy-configs --lint .
No configs copied.
./.clj-kondo/imports/potemkin/potemkin/potemkin/namespaces.clj:2:14: warning: namespace clj-kondo.hooks-api is required but never used
./.clj-kondo/imports/taoensso/encore/taoensso/encore_hooks.clj:42:37: warning: unused binding attrs
./.clj-kondo/imports/taoensso/encore/taoensso/encore_hooks.clj:42:43: warning: unused binding body
linting took 4964ms, errors: 0, warnings: 3
make: *** [lint] Error 1
Is it expected that clj-kondo will lint these files? I guess I could ignore them by explicitly listing the directories I want to lint, but I'm not sure if there's a conceptually valid reason I might want to lint these.

borkdude 2025-07-18T21:13:51.801349Z

If you run --lint . then it's expected that it will also lint code from the config directory, it's probably best to avoid it

borkdude 2025-07-18T21:14:22.050059Z

Note that --copy-configs doesn't do anything if you don't lint any classpaths with dependencies

fuad 2025-07-23T00:45:17.880829Z

Got it, thanks!