Fork me on GitHub
#clj-kondo
<
2023-06-06
>
joakimen09:06:26

How is clj-kondo supposed to work with the pre-defined babashka-aliases? (https://book.babashka.org/#built-in-namespaces) I've gotten used to explicitly requiring everything, including the already-aliased things like json, str and pprint, partly because I like having requirements be obvious, but mostly because I don't like seeing the squiggly-line telling me that I'm referencing an unresolved namespace. Is the current design of clj-kondo meant to react on the built-in babashka aliases, or do I have some weirdness in my setup?

borkdude09:06:25

Don't rely on the pre-defined aliases outside of one-liners on the command line. When you are making a script, just use require etc with your own aliases

👍 2
imre11:06:23

^ this should be in the readme somewhere with capital letters 🙂

imre11:06:08

would it make sense to have a setting that requires aliases to be explicitly specified?

borkdude11:06:31

it is in the book

borkdude11:06:58

the aliases only pertain to the user namespace

borkdude11:06:28

feel free to make a PR if you think the docs can be improved at the place where you think it makes sense

imre13:06:56

Oh I must have missed that then. Will double-check