Fork me on GitHub
#clj-kondo
<
2023-11-18
>
Matthew Twomey22:11:03

I wouldn’t suggest this as a feature, but just in case there is a way to accomplish it on my own, I’m going to ask: Is there a way I can have kondo recognize symbols used in the selmer.parser << macro so they are not indicated as unused? E.g. as seen here:

borkdude22:11:41

I think the only way to do this is with a hook, where you parse out the {{ }} expressions and construct a new expression as the return value of the hook with those expressions

Matthew Twomey22:11:18

Ok thanks - I figured something similar.

borkdude22:11:36

I'd really use something like #C66EM8D5H to construct sql instead of selmer, seems much safer

borkdude22:11:59

but that's unrelated to your question

Matthew Twomey22:11:43

No - I appreciate that. I saw it, but this was a case where a 10 minute exploration with just a single SQL statement unexpectedly grew into a multi-hour endeavor. Now that I’ve decided to take this further, I probably should (and will) take another look at honey.

reefersleep09:11:57

👍 for Honey, it's straightforward and a pleasure to use. 🙂

👍 2