This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-20
Channels
- # announcements (10)
- # architecture (7)
- # babashka (49)
- # beginners (125)
- # calva (2)
- # chlorine-clover (33)
- # clj-kondo (15)
- # cljs-dev (18)
- # cljsrn (28)
- # clojure (91)
- # clojure-argentina (37)
- # clojure-austin (4)
- # clojure-dusseldorf (1)
- # clojure-europe (3)
- # clojure-france (2)
- # clojure-germany (2)
- # clojure-nl (4)
- # clojure-portugal (4)
- # clojure-spec (26)
- # clojure-uk (19)
- # clojuredesign-podcast (5)
- # clojurescript (19)
- # conjure (20)
- # core-async (4)
- # cursive (60)
- # data-science (4)
- # datomic (1)
- # duct (9)
- # emacs (11)
- # events (1)
- # fulcro (9)
- # graalvm (17)
- # jobs-discuss (7)
- # luminus (19)
- # malli (36)
- # meander (2)
- # off-topic (23)
- # pathom (2)
- # quil (1)
- # rdf (4)
- # re-frame (16)
- # reitit (10)
- # ring (21)
- # ring-swagger (1)
- # shadow-cljs (137)
- # spacemacs (10)
- # sql (27)
Is there a recommended way to address error: unresolved symbol goog.DEBUG
?
It’s not something you usually require so I’m not sure how to tell clj-kondo that it’s fine
{:linters
{:unresolved-symbol
{:exclude [(riemann.streams/streams [where])]}}}
I guess something like this but for just the goog.DEBUG
symbol. I’ll give variations of this a try@U050TNB9F Just adding that symbol to the :exclude
vector works
but I would be happy to support this out of the box. There is also goog.global
which I listed.
Maybe everything that starts with goog.
should be not warning about in CLJS or is that too much?
If you grep the source for goog.global
you'll find the spot where this is handled. Feel free to add more there.
I think everything under goog. would be to aggressive since that would not err if goog.abc
is used via it’s fully qualified name in namespace A
but only require in namespace B
I found multiple places that mention goog.global
, would it need to be added to both?
extract/clj_kondo/impl/extract_var_info.clj
58: special '#{ns js* *target* goog.global}]
src/clj_kondo/impl/var_info_gen.clj
10: (def cljs-core-syms '#{,,, goog.global ,,,})
@U050TNB9F Only to the first one. The second one is generated
I think anything in goog/base.js is accessable like this. In addition to global
and DEBUG
, LOCALE
is probably quite common property: https://github.com/google/closure-library/blob/master/closure/goog/base.js
Though I guess LOCALE
is set in :closure-defines
so it isn't usually referred in the code