Fork me on GitHub
#clj-kondo
<
2019-07-25
>
tianshu12:07:23

how about the progress for spec checking?

borkdude12:07:54

nothing there yet

borkdude12:07:25

if you want something like that right now, you might want to give #spectrum a go

tianshu13:07:03

I think spectrum is adding a lot to the spec

borkdude13:07:11

I'm still planning to support some spec related stuff, but note that it will always be more limited than run-time checking

tianshu13:07:21

I think just checking about the type is enough, e.g string?, number?

borkdude14:07:25

joker also has support for this, e.g. when you do (inc "s") it will give a warning. I plan to support this, it's just something I will get to eventually

dharrigan15:07:35

arch package updated to v2019.07.24-alpha

Crispin15:07:48

Hey! Does clj-kondo do linting of cljs and cljc files?

borkdude15:07:39

yes, also .edn

Crispin15:07:45

how long has it been around for? I remember looking for a linter that would show me unused requires that worked with cljs and cljc a year or so ago and found nothing

Crispin15:07:03

did I just not find this? Or is it fairly new?

borkdude15:07:27

clj-kondo is 4 months old now

borkdude15:07:50

there's also joker which can find unused requires, which has been around for 2 years or longer

Crispin16:07:34

Awesome! I will try it

Crispin16:07:54

I think I found joker but was put off by the fact it wasn't written in clojure

Crispin16:07:42

seemed strange to me that for a task that required reading lisp, you wouldn't use the lisp itself, seeing as lisp seperates the reader and evaluator.

Crispin16:07:34

theres the startup time problem, of course. But that's not a big concern for me as this would be part of a CI/CD pipeline

Crispin16:07:43

how is clj-kondo's startup time?

borkdude16:07:02

joker is an attempt to make scripting in clojure faster. I think that's the reason it was implemented in Go, because of the startup time. but clj-kondo leverages GraalVM which results also in fast start up time. an average clojure file can be linted in 10-40 ms

borkdude16:07:32

but you can also use it on the JVM, as a regular clojure library

Crispin16:07:41

I havent used graal yet, but I did read a blog post about how it can solve the startup time issue

Crispin16:07:09

is it your work, @borkdude

borkdude16:07:53

clj-kondo is yes

Crispin16:07:40

awesome. I see you have an emacs screenshot on your page. is there an emacs package?

Crispin16:07:45

yowza. Im in heaven.

Crispin16:07:16

I think you may have really plugged a hole in the clj ecosystem! Thanks for all your hard work. I will try it!

borkdude19:07:40

any windows users wanting to help in this issue? https://github.com/borkdude/clj-kondo/issues/372

sogaiu23:07:59

regarding wsl-types of things: iiuc, wsl 2 is on the horizon(?) -- this leaned me away from starting to use the existing wsl. i don't know when it will happen nor what consequences there might be for the remove wsl extension, though.

sogaiu23:07:22

@crispin the flycheck integration has been working pretty well for me -- i only installed it for testing, but now i've become a user 🙂