Fork me on GitHub
#clj-kondo
<
2020-02-01
>
Adrian Smith16:02:23

I'm trying to use clj-kondo on emacs I've installed the extension via package-install and added (require 'flycheck-clj-kondo) to my init.el but nothing lints unless I run :global-flycheck-mode in evil mode, then it works but that's not persistent, what am I missing?

Adrian Smith16:02:30

ah I think (global-flycheck-mode 1) in init.el has "fixed" it

borkdude17:02:18

I've got a clj-kondo build here which adds type checks for function calls: https://8273-176829714-gh.circle-artifacts.com/0/release/clj-kondo-2020.01.28-SNAPSHOT-linux-amd64.zip https://8275-176829714-gh.circle-artifacts.com/0/release/clj-kondo-2020.01.28-SNAPSHOT-macos-amd64.zip It's probably not perfect yet, but what it catches at the moment is for example:

borkdude17:02:29

Welcome to test it out on more examples and report non-working ones.

Nate Sutton22:02:11

I have a macro that is like (with-temp-directory path (do-stuff-with path)) and I can't find a macro that this is similar enough to it except def

Nate Sutton22:02:20

and clj-kondo is complaining about an inline def

Nate Sutton22:02:41

anyone have thoughts on how to address this?

borkdude22:02:22

yeah, it's hacky but linting as cljs.test/async works 🙂

Nate Sutton22:02:17

oh, wow, it does

practicalli_john22:02:03

I have to say thanks again to clj-kondo. I had several tips of really useful feedback during my live coding broadcast today. clj-kondo feels like I am constantly pairing with a trusted friend who lovingly stops me from making silly mistakes and helps me write more idiomatic code. (and this is with a version that's a couple of months old).

❤️ 4
Nate Sutton22:02:48

that type checking stuff will be really nice to have

borkdude22:02:25

I did find a type error in a proprietary project just now, but it was probably in some unused code: