CLI tool to merge clj-kondo configurations.
Merging clj-kondo configurations may come in handy when you have a configuration template that you always want to apply on every project and you want to merge it with the existing one.
Use as a git dep via deps.edn
:
{:deps
{clj-kondo-configurator
{:git/url "https://github.com/borkdude/clj-kondo-configurator"
:sha "4057a9e5c2070b6fbd69b2a7aa838c479f1e4ce1"}}}
Update SHA at your own convenience.
The API of this tool is not yet stable. Check CHANGES.md before upgrading. More options may be added like validation of clj-kondo configs.
Options to this tool are provided via the --opts
argument which takes on EDN
map. Currenly :merge
is the only option available which can be used to
deep-merge clj-kondo configuration files.
$ clj -m clj-kondo-configurator.main \
--opts '{:merge ["templates/.clj-kondo/config.edn" ".clj-kondo/config.edn"]}' \
> .clj-kondo/config.edn
Copyright © 2020 Michiel Borkent
Distributed under the EPL License, same as Clojure. See LICENSE.