This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-18
Channels
- # announcements (1)
- # babashka (15)
- # beginners (152)
- # calva (28)
- # circleci (1)
- # clj-kondo (24)
- # cljsrn (8)
- # clojure (137)
- # clojure-berlin (3)
- # clojure-czech (2)
- # clojure-dev (20)
- # clojure-europe (69)
- # clojure-finland (5)
- # clojure-france (3)
- # clojure-italy (11)
- # clojure-my (1)
- # clojure-nl (4)
- # clojure-uk (15)
- # clojuredesign-podcast (1)
- # clojurescript (13)
- # conjure (15)
- # cursive (13)
- # datomic (41)
- # deps-new (50)
- # events (1)
- # fulcro (9)
- # graalvm (27)
- # joker (2)
- # kaocha (11)
- # off-topic (22)
- # pathom (48)
- # rdf (6)
- # reagent (25)
- # reitit (47)
- # reveal (10)
- # ring-swagger (1)
- # rum (4)
- # sci (27)
- # shadow-cljs (73)
- # tools-deps (49)
- # vrac (2)
- # xtdb (4)
Often, I have rich comment blocks that have blocks of vars that I redefine, to try things out (i.e., for different environments). Currently clj-kondo says this warning: redefined var
#_:clj-kondo/ignore
(comment
...
...
...
lots of redefining going on here...
...
...
,)
@dharrigan This seems to work for me:
(def x)
(def y)
#_:clj-kondo/ignore
(comment
(def x)
(def y)
(def y)
)
I was confused about something that it rightly pointed out, but was at the top of the file
@dharrigan More selectively:
(def x)
(def y)
#_{:clj-kondo/ignore[:redefined-var]}
(comment
(def x)
(def y)
(def y)
)
Excellent, this will make my live coding broadcasts have fewer warnings, thank you 🙂 Its now an Emacs snippet
Ah, it works now I upgraded clj-kondo (I was a release behind, inconceivable) Thanks for this excellent project.