This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-07
Channels
- # announcements (7)
- # asami (3)
- # aws-lambda (2)
- # babashka (10)
- # beginners (30)
- # bristol-clojurians (3)
- # calva (13)
- # cider (26)
- # clj-kondo (6)
- # clojure (172)
- # clojure-europe (30)
- # clojure-italy (3)
- # clojure-nl (3)
- # clojure-serbia (9)
- # clojure-uk (64)
- # clojurescript (76)
- # conjure (9)
- # cursive (46)
- # data-science (1)
- # datomic (6)
- # emacs (13)
- # etaoin (1)
- # fulcro (27)
- # girouette (4)
- # jobs (1)
- # joker (2)
- # lsp (7)
- # malli (19)
- # meander (47)
- # off-topic (123)
- # pathom (6)
- # reitit (3)
- # remote-jobs (7)
- # reveal (37)
- # ring-swagger (2)
- # shadow-cljs (60)
- # specter (5)
- # startup-in-a-month (3)
- # tools-deps (21)
- # vim (4)
Sometimes, I need to require a namespace for its side-effects (e.g. defmethod declarations). clj-kondo seems to understand that when I write
(ns foo
(:require bar))
But cider-refactor removes bar
from the require list, as it “Remove any unused libspec vectors”.
Does anyone know a way to tell clj-refactor to keep bar
?Don’t know, maybe ask in CIDER? Perhaps it can use the same convention as clj-kondo?
How did you solve it in clj-kondo?
Libraries without an alias or :refer are considered to be required for side effects and left alone
Is there any difference — to the tooling — between (:require bar)
and (:require [bar])
? I think some tools treat the latter as a special case but not the former?