This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-04
Channels
- # announcements (1)
- # asami (61)
- # babashka (71)
- # beginners (170)
- # biff (1)
- # calva (14)
- # clj-kondo (23)
- # cljsrn (28)
- # clojars (1)
- # clojure (152)
- # clojure-australia (2)
- # clojure-europe (65)
- # clojure-nl (2)
- # clojure-spec (8)
- # clojure-sweden (3)
- # clojure-uk (45)
- # clojurescript (1)
- # css (12)
- # cursive (16)
- # datomic (9)
- # devcards (2)
- # emacs (1)
- # events (1)
- # graalvm (31)
- # honeysql (10)
- # jackdaw (2)
- # jobs (5)
- # lambdaisland (9)
- # lsp (4)
- # malli (11)
- # meander (43)
- # off-topic (6)
- # pathom (7)
- # polylith (1)
- # portal (14)
- # re-frame (7)
- # releases (1)
- # remote-jobs (1)
- # rewrite-clj (6)
- # shadow-cljs (101)
- # specter (1)
- # tools-deps (26)
- # vim (9)
- # xtdb (2)
@borkdude Is it possible to tell carve to ignore a clj file, instead of some symboles
@i carve has :api-namespaces
where it won't look at public unused vars, maybe this works for you?
❯❯❯ clojure -M:carve --opts '{:paths ["src"]}'
Carving src/mocks.cljs
Found unused var:
------------------
(def action-button #js {:default #js {:Item #js {}}})
------------------
Type Y to remove or i to add mocks/action-button to .carve/ignore
Looking at the test sample: https://github.com/borkdude/carve/blob/f499f65e36e02484609f01ce891f3c0207b24444/test/carve/main_test.clj#L66
Is it possible to instruct carve to ignore all clj files that has the name of xxx_test.clj ?
clj-kondo itself doesn't have that feature, but it's available as part of its analysis output
Yup. I was trying to use carve. And suddenly got aware that clj-kondo has the unused feature covered: https://github.com/clj-kondo/clj-kondo#features