Fork me on GitHub
#babashka
<
2023-08-09
>
hkjels06:08:01

Does anyone know of any Babashka scripts that can be used to rewrite or refactor Clojure code?

borkdude07:08:03

yes, babashka has #rewrite-clj built-in so you can refactor code using clj-kondo analysis and rewrite it as you like. an example of such a script you can find here which rewrites auto-resolved keywords to normal keywords: https://github.com/babashka/babashka/blob/master/examples/normalize-keywords.clj

hkjels08:08:56

perfect! Thanks

borkdude09:08:36

Today it's #babashka's 4th birthday! https://babashka.org/ Star the Github repo: https://github.com/babashka/babashka Sponsor development: https://github.com/sponsors/borkdude

🎉 54
🎂 44
babashka 28
👍 16