This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-20
Channels
- # aleph (11)
- # announcements (3)
- # babashka (35)
- # babashka-sci-dev (28)
- # beginners (29)
- # calva (51)
- # cider (33)
- # clj-kondo (26)
- # clj-on-windows (1)
- # clojure (40)
- # clojure-austin (1)
- # clojure-europe (47)
- # clojure-nl (9)
- # clojure-norway (7)
- # clojure-uk (5)
- # clojurescript (69)
- # conjure (30)
- # cursive (7)
- # data-science (9)
- # datomic (2)
- # etaoin (10)
- # events (2)
- # fulcro (1)
- # graalvm (1)
- # gratitude (6)
- # helix (16)
- # honeysql (20)
- # hyperfiddle (14)
- # inf-clojure (2)
- # jobs (1)
- # jobs-discuss (12)
- # kaocha (9)
- # leiningen (2)
- # lsp (4)
- # malli (8)
- # music (9)
- # off-topic (12)
- # pathom (10)
- # portal (14)
- # practicalli (15)
- # re-frame (27)
- # reitit (7)
- # remote-jobs (4)
- # sci (37)
- # shadow-cljs (16)
- # sql (8)
- # tools-deps (6)
- # vim (6)
- # xtdb (21)
clj-kondo is giving me false positive warnings for unresolved vars in the superstring
library - any idea how to fix?
Something is definitely funky because I can see the function signature and documentation on hover but it's still shown as unresolved
(defmacro ^:private alias-ns
"Create an alias for all public vars in ns in this ns."
[namespace]
`(do ~@(map
(fn [^clojure.lang.Var n] `(defalias ~(.sym n) ~(symbol (str (.ns n)) (str (.sym n)))))
(vals (ns-publics namespace)))))
(alias-ns clojure.string)
Thank you! That worked. For anyone else reading, I added:
:linters {:unresolved-var {:exclude [superstring.core]}}
to .clj-kondo/config.edn
There is a small library which can create stubs: https://github.com/clj-easy/stub And when you the lint that stub, you would get the right stuff
we all know that (myClass.)
and (new myClass)
are equivalent but did you know that full stops are becoming problematic?
could you make a clj-kondo
warning against the use of (myClass.)
form to protect Clojure users from such rudeness?
Excuse me, the computer is my underling. I will use the exact amount of passive aggression that I want.
I'll have to disable this lint.
Thanks.