Fork me on GitHub
#cider
<
2017-02-06
>
borkdude12:02:43

cljr-clean-ns sometimes removes namespaces that are there just for the side effect of loading them, like [cljsjs.bootstrap], because it isn’t explicitly used in the code. Is there a way to prevent this?

benedek12:02:13

you can define a list of ‘do not touch these’ ns-es i think

benedek12:02:19

for this very reason

benedek12:02:34

(defcustom cljr-libspec-whitelist
  '("^cljsns" "^slingshot.test" "^monger.joda-time" "^monger.json")
  "List of regexes to match against libspec names which shouldn't be pruned.

This is useful when `clean-ns' should leave a libspec alone even
if it appears to be unused."
  :group 'cljr
  :type '(repeat string))

borkdude13:02:06

ah nice, thanks

borkdude14:02:10

I have ’(^cljsjs\.bootstrap”) and tried other things, but it still removes [cljsjs.bootstrap]. I evaluated the defcustom form with C-x C-e. Should that work?

borkdude14:02:27

Maybe I should upgrade

borkdude14:02:42

I upgraded, but still doesn’t work (cc @benedek )

benedek14:02:50

try to use the customize interface

benedek14:02:31

M-x customize-variable

benedek14:02:17

and the thing you posted here in slack missing a , perhaps that?!