This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-03
Channels
- # announcements (3)
- # beginners (114)
- # calva (42)
- # cider (90)
- # clj-kondo (3)
- # cljsrn (6)
- # clojure (40)
- # clojure-conj (4)
- # clojure-dev (3)
- # clojure-europe (4)
- # clojure-italy (3)
- # clojure-nl (4)
- # clojure-quebec (1)
- # clojure-spec (3)
- # clojure-uk (130)
- # clojurescript (31)
- # cursive (3)
- # data-science (3)
- # datavis (1)
- # datomic (5)
- # dirac (3)
- # fulcro (16)
- # jobs (1)
- # joker (6)
- # music (5)
- # off-topic (14)
- # re-frame (19)
- # remote-jobs (8)
- # shadow-cljs (37)
- # slack-help (4)
- # tools-deps (22)
- # xtdb (8)
I wonder if there is configuration to disable unused binding warning for certain names? For example, I use e
(event) binding in event handler functions even I don't need the event. For new projects I could consider prefixing with _
but I'd rather not rename all bindings in existing projects. Other cases include catch Exception e
, and ctx
name I use for component/integrant system map.
Another thing I could use, would be to exclude unused binding warning for map destructuring :as
, where I use the name for documentation, when I only refer to :keys
bindings.
There are only two ways to suppress these warnings:
https://github.com/borkdude/clj-kondo/blob/master/doc/config.md#exclude-unused-bindings-from-being-reported
There is no special option for :as
but that could be implemented as a new feature.