Fork me on GitHub
#clj-kondo
<
2019-08-14
>
herald14:08:11

thanks for the very useful linter ^^ have you considered warning when referring to undefined bindings? I think joker did this, so I kinda miss it

herald14:08:25

actually, it seems it already does this, but it doesn't show up in my editor (neovim with ale), which I presume is because it logs as *info*.

$ echo '(defn x [] (inc z b))' | clj-kondo --lint - 
<stdin>:1:12: error: clojure.core/inc is called with 2 args but expects 1
<stdin>:1:17: info: unresolved symbol z
<stdin>:1:19: info: unresolved symbol b

borkdude14:08:47

true, it logs all unresolved symbols on the info level, but you can tweak that in your .clj-kondo/config.edn

borkdude14:08:03

now that this has become pretty reliable I might bump the level to :warning instead

herald14:08:40

cool! although I'm really confused why ale doesn't highlight it when it's info. I'm trying to find the setting for this, as it seems very useful to have the information

herald15:08:33

I gave up on ale for now. config.edn it is [[=