Skip to content

Linting a custom def* macro that takes a vector of param bindings exactly like destructuring :keys vector #1502

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

You must be logged in to vote

@TuggyNE My suggestion for this macro would be to write a hook for it. The easiest to get started with is the :macroexpand hook: https://github.com/clj-kondo/clj-kondo/blob/master/doc/hooks.md#macroexpand

You can simply copy past your macro, or a simplified version into a clojure file in the config dir: .clj-kondo/your-org/your-lib/your_lib/your_namespace.clj
And then configure that calls to your macro should use that hook.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@TuggyNE
Comment options

Answer selected by TuggyNE
Comment options

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

@borkdude
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