This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-10
Channels
- # asami (2)
- # babashka (28)
- # beginners (91)
- # calva (38)
- # cider (7)
- # clj-kondo (20)
- # cljfx (3)
- # clojure (88)
- # clojure-austin (1)
- # clojure-australia (2)
- # clojure-bay-area (10)
- # clojure-europe (68)
- # clojure-france (8)
- # clojure-italy (14)
- # clojure-nl (4)
- # clojure-sanfrancisco (1)
- # clojure-uk (14)
- # clojurescript (37)
- # clojureverse-ops (14)
- # clojurewerkz (1)
- # clr (1)
- # conjure (13)
- # cursive (10)
- # datascript (30)
- # datomic (6)
- # emacs (13)
- # exercism (3)
- # fulcro (10)
- # graalvm (4)
- # graphql (2)
- # instaparse (5)
- # jobs (3)
- # kaocha (10)
- # off-topic (20)
- # pathom (17)
- # polylith (7)
- # re-frame (25)
- # remote-jobs (1)
- # shadow-cljs (60)
- # spacemacs (5)
- # specter (1)
- # startup-in-a-month (1)
- # tools-deps (48)
- # vim (4)
- # xtdb (11)
@borkdude https://github.com/clj-kondo/clj-kondo/issues/1164 is this something that would be useful?
If this doesn't end up in clj-kondo eventually you can write a custom hook to handle cond and condp yourself
how would I go about writing custom hook, we’ve being bitten in our rear end few times over last days because of condp lacking default case
np. you might have to do some more work to take into account :>>
, e.g. filter it out, but if you're not using that this should already be sufficient
Idea for linting: warn about useless ->
in the code like (-> 'x)
.
Sometimes during refactoring I remove all forms in threading macro and miss remaining macro itself.
I'm not talking about when y
is a form, that should be fine, but for a symbol or keyword.
Sometime I would like to emphasize that x
is more important in the context than y
. Like (f a (-> b xform))
. This allows me to place accents.
https://clojurians.slack.com/archives/CHY97NXE2/p1612971030126000?thread_ts=1612969334.125300&cid=CHY97NXE2