This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-27
Channels
- # announcements (3)
- # babashka (16)
- # beginners (177)
- # calva (102)
- # cider (2)
- # clj-kondo (12)
- # clojars (10)
- # clojure (91)
- # clojure-argentina (3)
- # clojure-australia (5)
- # clojure-europe (16)
- # clojure-nl (1)
- # clojure-uk (10)
- # clojurescript (73)
- # community-development (8)
- # cursive (9)
- # depstar (7)
- # fulcro (5)
- # helix (1)
- # introduce-yourself (1)
- # jobs-discuss (18)
- # lsp (32)
- # luminus (1)
- # malli (2)
- # music (4)
- # off-topic (20)
- # pathom (19)
- # polylith (15)
- # re-frame (4)
- # reagent (6)
- # ring (13)
- # sci (36)
- # shadow-cljs (7)
- # spacemacs (4)
- # sql (3)
- # tools-deps (112)
- # vim (21)
dear clojure community
please not use (use cool.lib)
or :refer :all
in your libraries tutorials.
it is really hard to beguinners (and for me) to understand which commands comes from the library and what is from clojure.core.
Does kondo offer a recommendation?
something like "have you considered instead (:require [cool.lib :as cl])
?
yes, it will even suggest you which vars you should :refer
if you want to use refer. if it has enough information about the "used" library
fantastic!
this information is provided when you have already linted that library using clj-kondo --lint $(clojure -Spath)
and have .clj-kondo
directory
Kondo does that on code. I'm talking about tutorials/documentation. It do not run on cljdoc/markdown/blog post. yet 👀
Plugging a friend's project, https://github.com/eclecticiq/rundoc
strongly prefer requiring namespace as some intelligible alias and using things through that alias
@borkdude I think we can even have a code action (I think someone mentioned that somewhere) to actually replace the :refer :all
with the suggested refers in clojure-lsp
@ericdallo good idea, perhaps as part of lsp-organize-imports
?
yeah, we 'd need a flag for that and maybe some ns pattern to exclude from that, but LGTM
if people don't like the warnings from clj-kondo they probably would already have configured clj-kondo like that
Just watched a preso by Charity Majors and she mentioned her "Observability Engineering" book, in prerelease from O'Reilly, so I thought I'd maybe buy it... but it looks like O'Reilly doesn't actually sell ebooks/prerelease books any longer? I love buying ebooks in beta/prerelease from PragProg and Manning... and I'm sure I used to be able to do that with O'Reilly too...
There's a #music channel 🙂