-
I have a custom macro that takes a vector of parameter bindings and injects this into the vector of a Specifically, it's perfectly permissible to include keywords in the vector, even namespaced, and it works exactly like you'd expect with normal destructuring, creating a local binding with the On the other hand, linting as Is there a reasonably straightforward solution for this? (I suppose I could theoretically rewrite the macro to use less syntactic sugar and require the actual destructuring form, but then I'd have to change two or three dozen places, and the macro would need more internal sophistication.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@TuggyNE My suggestion for this macro would be to write a hook for it. The easiest to get started with is the You can simply copy past your macro, or a simplified version into a clojure file in the config dir: |
Beta Was this translation helpful? Give feedback.
-
All right, finally got this all to work by using the no-prefix path ( |
Beta Was this translation helpful? Give feedback.
@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#macroexpandYou 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.