This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-13
Channels
- # announcements (4)
- # babashka (1)
- # beginners (124)
- # calva (5)
- # cider (3)
- # clara (3)
- # clerk (5)
- # clj-commons (14)
- # cljdoc (12)
- # cljs-dev (14)
- # clojure (43)
- # clojure-austin (23)
- # clojure-europe (55)
- # clojure-nl (1)
- # clojure-norway (11)
- # clojure-uk (2)
- # clojurescript (34)
- # conjure (1)
- # cursive (1)
- # data-science (28)
- # datomic (3)
- # fulcro (20)
- # gratitude (2)
- # hyperfiddle (6)
- # introduce-yourself (1)
- # jobs (5)
- # lsp (56)
- # malli (5)
- # membrane (7)
- # mount (5)
- # off-topic (16)
- # polylith (39)
- # portal (38)
- # practicalli (1)
- # rdf (1)
- # re-frame (8)
- # releases (8)
- # remote-jobs (4)
- # shadow-cljs (49)
- # sql (1)
- # xtdb (36)
Dagens TIL: https://github.com/borkdude/carve kan gi deg en interaktiv "denne var-en er ubrukt, vil du slette den?" som du kan kjøre på en eller flere filer. Funker litt som git rebase --interactive
.
$ carve --paths src/teodor/bloated.clj
Carving src/teodor/bloated.clj
Found unused var:
------------------
(def xx 'xx)
------------------
Type Y to remove or i to add teodor.bloated/xx to .carve/ignore
Y
Found unused var:
------------------
(def yy 'yy)
------------------
Type Y to remove or i to add teodor.bloated/yy to .carve/ignore
Y
Found unused var:
------------------
(defn ^:private rgb [r g b]
(css-funcall-string "rgb"
r g b))
------------------
Type Y to remove or i to add teodor.bloated/rgb to .carve/ignore
Writing result to /home/teodorlu/dev/teodorlu/example/src/teodor/bloated.clj
Hvis du har https://github.com/babashka/bbin, kan du installere carve med:
$ bbin install io.github.borkdude/carve