This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-16
Channels
- # babashka (48)
- # beginners (44)
- # biff (3)
- # calva (1)
- # cider (42)
- # clj-kondo (8)
- # clojure (93)
- # clojure-australia (2)
- # clojure-europe (3)
- # clojure-taiwan (1)
- # clojurescript (10)
- # conjure (4)
- # deps-new (5)
- # joker (9)
- # lsp (12)
- # membrane (16)
- # minecraft (12)
- # missionary (4)
- # mount (3)
- # off-topic (60)
- # reitit (9)
- # releases (13)
- # ring-swagger (1)
- # shadow-cljs (18)
- # sql (67)
- # tools-deps (2)
I am attempting to write a custom clj-kondo hook. I have a token node that is a symbol that looks like foo/bar
such that foo
is an alias for another namespace like some-library.api.foo
. Is there a way I can get the information to fully expand that namespace part of the symbol, so that I now have some-library.api.foo/bar
as the symbol?
@UDVJE9RE3 currently not, but could you describe the macro a little bit? usually macros don't need to resolve alias, they just emit
I'm not doing anything with a macro. Here is the hook setup in my config.edn
:hooks {:analyze-call {re-frame.core/reg-event-fx lispers-anonymous.re-frame.sub-in-event-handler/hook}}
I'm trying to emit a warning when some calls re-frame.core/subscribe
inside of a re-frame event.
Sure I can do that. This is not something blocking me up, as the project I'm hoping to use this in is pretty consistent in the namespaces it uses. Turing on the :consistent-alias
in conjunction with my current hook, and explicitly checking for the symbol rf/subscribe
will be more than enough.
Thanks for the quick response this morning. I opened up an issue here: https://github.com/clj-kondo/clj-kondo/issues/1546