This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-25
Channels
- # announcements (2)
- # asami (16)
- # babashka (55)
- # beginners (27)
- # calva (14)
- # cider (5)
- # clj-kondo (16)
- # cljs-dev (22)
- # clojure (72)
- # clojure-europe (89)
- # clojure-nl (10)
- # clojure-uk (7)
- # clojured (1)
- # clojurescript (14)
- # community-development (4)
- # core-async (15)
- # emacs (10)
- # events (2)
- # fulcro (3)
- # graalvm (1)
- # graalvm-mobile (71)
- # helix (7)
- # honeysql (2)
- # introduce-yourself (1)
- # jobs-discuss (17)
- # juxt (3)
- # lsp (62)
- # malli (13)
- # meander (7)
- # off-topic (14)
- # pathom (54)
- # polylith (6)
- # re-frame (11)
- # releases (1)
- # sci (22)
- # sql (9)
- # tools-deps (84)
- # vim (37)
- # xtdb (18)
I have an interesting one. I'm working on a project that has something like this (sql/defsql "filetoload.sql" :as q)
the sql/defsql
is a defmacro
that uses hugsql. I've read the helpful tips about hugsql on the wiki, but in this case it doesn't apply, since...
the macro does this (in its internals) (alias '~alias query-namespace#)
where the alias
is the q
above.
So, the q
is defined in the namespace as an alias
. It is then used in that namespace as q/some-hugsql-thingie
, but clj-kondo doesn't know anything about it.
@dharrigan oh man :)
I think it's more the project I'm working on, and the way they've done it, rather than hugsql 🙂
and if you figure the hook out, you could contribute it to: https://github.com/clj-kondo/config/tree/master/resources/clj-kondo.exports/clj-kondo