This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-18
Channels
- # ai (2)
- # announcements (11)
- # beginners (34)
- # biff (14)
- # clerk (14)
- # clj-kondo (25)
- # clojure (27)
- # clojure-austin (1)
- # clojure-conj (6)
- # clojure-denmark (1)
- # clojure-europe (20)
- # clojure-hamburg (1)
- # clojure-nl (1)
- # clojure-norway (28)
- # clojure-uk (2)
- # clojuredesign-podcast (6)
- # clojurescript (43)
- # cursive (4)
- # data-science (2)
- # emacs (9)
- # hyperfiddle (9)
- # introduce-yourself (2)
- # jobs (3)
- # lsp (32)
- # missionary (31)
- # nbb (8)
- # off-topic (23)
- # rdf (23)
- # re-frame (10)
- # reitit (11)
- # releases (3)
- # rewrite-clj (4)
- # shadow-cljs (7)
- # specter (6)
- # sql (7)
- # xtdb (7)
When importing configuration from libs, a merge of those configs must take place somewhere if I'm not wrong. Is the order of this merge known?
@U08BJGV6E external configs are merged in arbitrary order, after that comes local configuration (`.clj-kondo/config.edn`), then namespace-local config
If I have my uber-great-config in a dependency and want it to override all other imported configs, is there currently a way to do that?
An idea came that we'd want a centrally managed clj-kondo base config that would live in repo A and be used by all other projects living in separate repos.
so I'd need something like: all 3rd party configs < my special imported configs < local config < namespace-local config
Any suggestions about this? Or is there an already established way to do something similar?
the merging order shouldn't matter since third party configs should only be concerned with specific libs
Thanks, I'll give it a go, then. I'm still marginally concerned that I cannot reliably override parts of a third party config but I guess it should be a rare need.
Oh, so anything I name there explicitly overrides anything that's copied? Or is it if there's a config-paths entry then any other copied configs won't be considered?
is it possible to print the current merged config? (before processing a given file)
I believe you can do it with this function: https://github.com/clj-kondo/clj-kondo/blob/master/API.md#clj-kondo.core/resolve-config
cool, thank you