Fork me on GitHub
#clj-kondo
<
2022-06-17
>
nottmey12:06:32

Would be nice to have a lint rule for that, often I don’t notice whether I use a function or a macro… (but ofc when executing you notice things like this directly)

borkdude13:06:15

I think that would be useful, feel free to post an issue

nottmey13:06:39

ok nice, will do ☺️

markaddleman16:06:00

I'm a new clj-kondo user through Clojure Extras Intellij plugin. I'm really enjoying it. I think clj-kondo doesn't properly understand sequence when used with transducers in a multi-arity situation. For example:

(sequence (map (fn [i j]))
  (range 10) (range 10))
clj-kondo reports fn is called with 1 arg but expects 2 I didn't see a github issue for this. Should I open one?

borkdude16:06:37

@markaddleman Good catch, please open an issue

👍 1
borkdude16:06:57

Do you know how to ignore the error already?

markaddleman16:06:25

I know it can be done but I haven't delved into kondo's config very deeply

borkdude16:06:17

ok, you can just put a #_:clj-kondo/ignore in front of the form until it's fixed

markaddleman16:06:39

oh, cool. I didn't know about that approach.