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.
Thanks for the report. Worthy of a Github issue I'd say
Cool, I'll go ahead and open one. Thanks for the quick reply
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.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
Note that --copy-configs doesn't do anything if you don't lint any classpaths with dependencies
Got it, thanks!