Skip to content

Handling user bindings with clj-kondo #912

Answered by borkdude
mode89 asked this question in Q&A
Discussion options

You must be logged in to vote

@mode89 Ah yes, I think clj-kondo doesn't play well with functions that aren't qualified via an ns form.

for clj-kondo users you could ask users to write this:

(require '[my-api :refer :all])

and then expose your macro/functions via my-api which you put in SCI's {:namespaces {'my-api ...}}.

When evaluating stuff in the interpreter you could automatically also evaluate (require '[my-api :refer :all]) beforehand.

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@borkdude
Comment options

@mode89
Comment options

@mode89
Comment options

@borkdude
Comment options

Answer selected by mode89
@mode89
Comment options

@mode89
Comment options

@borkdude
Comment options

@mode89
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants