Fork me on GitHub
#clj-kondo
<
2021-10-09
>
pinkfrog16:10:50

Can I suppress โ€œNon-determistic version.โ€ wanring?

borkdude16:10:19

you can put #_:clj-kondo/ignore in front of it

pinkfrog16:10:56

Can I do this in the config.edn file?

borkdude17:10:41

Currently there is not a specific rule for non deterministic version to let you do this in config. There is only one global deps.edn rule which gives similar output to what the clojure CLI itself spits out

john17:10:34

Is it possible for a library to export a config.edn (with :lint-as configs) such that consumers of the lib will automatically add in the lib's configs to the application developer's project?

borkdude17:10:29

It's almost automatic, you still have to opt into the config as a user in your config

john19:10:05

Sweet! Thanks @borkdude

john20:10:00

@borkdude do you know if Clojure-LSP adds --copy-configs --dependencies , or some equivalent, when it calls clj-kondo? Playing with it in Calva, from a gitpod, I actually see the config getting populated in the project's .clj-kondo/net.clojars.john directory, with the correct :lint-as map in there. But I'm still seeing errors in the actual source files.

john20:10:35

So the import is definitely populating the local .clj-kondo dir

borkdude20:10:44

yes, lsp adds this. but you should opt in to that config in :config-paths yourself, always

borkdude20:10:09

{:config-paths [""]}

john20:10:05

I put {:config-paths ["clj-kondo/injest"]} in my local config.edn. Maybe I'm exporting the directory structure wrong? I based it off the fulcro repo: https://github.com/johnmn3/injest/tree/main/src/clj-kondo/clj-kondo.exports/net.clojars.john/injest

borkdude20:10:30

you should add net.clojars.john/injest

borkdude20:10:42

if there is a dir like that in your .clj-kondo

john20:10:22

aaaand that worked

๐ŸŽ‰ 2
john20:10:16

Pretty awesome! Thanks for figuring all this out