Fork me on GitHub
#cider
<
2017-04-07
>
xiongtx21:04:58

Is there anything for CIDER/`cljr` that can highlight unused vars/fns?

xiongtx21:04:04

I don’t see anything…

tanzoniteblack22:04:56

I haven't used squiggly-clojure in a while, it used to have a lot of issues when I was trying to use it, and all of the linters through a lot of spurious errors if you're using macro heavy code (like core.async)

xiongtx22:04:28

Must…resist…IntelliJ

xiongtx22:04:43

But thanks, I’ll see what those can do

tanzoniteblack22:04:53

and also...unused fns/vars is really difficult in clojure, since a macro could always use something without it being obvious in the code...or someone could just be using it by passing something in somewhere

ag22:04:11

what about joker? is that something it could handle?

tanzoniteblack22:04:16

if it's a private function or variable, it's easier since it reduces the scope...but still not easy

tanzoniteblack22:04:08

@ag doesn't look like joker currently supports much past what you're going to get by actually using cider and evaling the code? https://github.com/candid82/SublimeLinter-contrib-joker#reader-errors

tanzoniteblack22:04:42

might be wrong though, I've never heard of joker until now 🙂 , and also have no idea of how extensible it could be

jfntn23:04:45

With cider-jack-in-clojurescript is it possible to pass different lein params to the clj and cljs repls? I’d like to use different profiles

jfntn23:04:55

From a quick look at the code they seem to be reusing the same var, so maybe will need to rely on an advice for now?

ag23:04:22

@jfntn I think the do use different variables: cider-lein-params and cider-cljs-lein-repl

jfntn23:04:24

Hmm I think the latter are just clojure exprs to eval once the cljs repl was started

ag23:04:50

oh I see what you mean…

ag23:04:34

Maybe theres a way to write a function that does jack-in and then after that, changes cider-lein-params and executes cider-create-sibling-cljs-repl ?