This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-24
Channels
- # announcements (6)
- # architecture (9)
- # aws (2)
- # babashka (49)
- # beginners (160)
- # boot (19)
- # calva (9)
- # cider (16)
- # clj-kondo (17)
- # cljfx (9)
- # clojure (143)
- # clojure-australia (5)
- # clojure-berlin (1)
- # clojure-czech (3)
- # clojure-europe (64)
- # clojure-france (1)
- # clojure-italy (12)
- # clojure-nl (4)
- # clojure-spec (6)
- # clojure-uk (47)
- # clojurescript (27)
- # code-reviews (5)
- # conjure (45)
- # cursive (47)
- # datascript (2)
- # datomic (21)
- # events (1)
- # fulcro (9)
- # graalvm (4)
- # graphql (2)
- # jackdaw (22)
- # jobs (3)
- # kaocha (6)
- # london-clojurians (1)
- # luminus (4)
- # malli (19)
- # meander (136)
- # pathom (4)
- # pedestal (2)
- # re-frame (15)
- # reitit (2)
- # remote-jobs (2)
- # rum (12)
- # sci (1)
- # shadow-cljs (100)
- # spacemacs (10)
- # sql (1)
- # tools-deps (30)
- # vrac (1)
- # xtdb (30)
hi @borkdude 🙂 do you know if anyone has a reagent.core/with-let
linter, that shows you unused bindings?
@robert-stuttaford I think you can just use :lint-as
+ clojure.core/let
for that
ok that simple, nice
turns out we are...
no 😞
it does correctly warn that symbols are not defined when used on the right side of the binding, but it doesn't warn that bindings in the form are unused
@robert-stuttaford This warns that x
is unused for me:
(ns foo
{:clj-kondo/config '{:lint-as {reagent.core/with-let clojure.core/let}}}
(:require [reagent.core :refer [with-let]]))
(with-let [x 1]
(fn []))
ok, i'll dig and see if i can figure out what's going on, thank you!
lol :unused-binding {:level :off}
in config.edn
is prrrrrrobably why
there's a comment citing this issue https://github.com/borkdude/clj-kondo/issues/885 which is now fixed yay
ok it works, false alarm, sorry for the noise
i'm helping a different team out with some stuff 🙂