This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-22
Channels
- # announcements (16)
- # babashka (7)
- # babashka-sci-dev (14)
- # beginners (34)
- # calva (80)
- # clj-kondo (23)
- # cljdoc (17)
- # cljs-dev (1)
- # cljsrn (10)
- # clojure (51)
- # clojure-berlin (3)
- # clojure-europe (14)
- # clojure-italy (10)
- # clojure-nl (2)
- # clojure-norway (211)
- # clojure-uk (5)
- # clojurescript (4)
- # cursive (22)
- # datalevin (12)
- # datomic (2)
- # defnpodcast (1)
- # duct (5)
- # emacs (4)
- # events (2)
- # fulcro (3)
- # graalvm (1)
- # interop (3)
- # introduce-yourself (4)
- # java (1)
- # jobs (7)
- # kaocha (38)
- # leiningen (3)
- # lsp (11)
- # malli (4)
- # membrane (5)
- # music (1)
- # off-topic (28)
- # pathom (13)
- # pedestal (3)
- # polylith (4)
- # portal (10)
- # practicalli (1)
- # re-frame (33)
- # reitit (2)
- # remote-jobs (1)
- # sci (6)
- # shadow-cljs (49)
- # sql (4)
- # xtdb (3)
hey all, I’m hitting a problem where in a project that takes sicmutils as a dependency, any namespace that tries to use a form like new-sym
defined in sicmutils.env
with (import-def original-value new-sym)
fails to recognize sicmutils.env/new-sym
, EVEN THOUGH namespaces inside the project work fine.
repro here: https://github.com/sritchie/kondo-repro
the rule I wrote for this definitely triggers when I lint dependencies, which I would have assumed would populate the cache.
The import-vars
rule for potemkin on the other hand does not seem to have any trouble in this case, so I am guessing it is a problem with my hook?
but weird that it only shows up in dependencies…
I did notice this:
cat .clj-kondo/.cache/v1/cljc/sicmutils.env.transit.json | jet --from transit --query ':clj keys' --pretty
The principal-value
var doesn't appear in there.sounds good!
How do I get rid of unused-public-var warnings in Calva? From what I gather, these come about via Calva's use of clojure-lsp, which uses a custom linter in clj-kondo to generate these. I've tried adding #clj-kondo/ignore and #{:clj-kondo/ignore [:unused-public-var]] before the statement throwing the warning, but neither of these seem to work. Any ideas?
Hi hello, what is the best approach to create a custom kondo rule, to warn me about println and prn that I forgot in my code after a debug session?
@rafaeldelboni you can write a hook for it. docs: https://github.com/clj-kondo/clj-kondo/blob/master/doc/hooks.md
Oh thanks this is exactly what I was looking for https://github.com/clj-kondo/clj-kondo/blob/master/doc/hooks.md#disrecommend-usage-of-function-or-macro
A linter that would be able to catch that is https://github.com/clj-kondo/clj-kondo/issues/996 but it hasn't been implemented yet. https://github.com/clj-kondo/clj-kondo/issues/996
That would be a nice feature
sure 😅