Fork me on GitHub
#clj-kondo
<
2023-02-15
>
ingesol15:02:56

I’m seeing some unexpected linter warnings popping up, details and config in thread

ingesol15:02:58

Lint messages is “Insufficient input”. This seems wrong to me, or is there something I’m not seeing?

ingesol15:02:49

Hmmm, also noticing that I might have to report a missing nilable on that tuple to malli

borkdude16:02:28

[:int :int [:int :int]]
isn't a valid clj-kondo args spec

ingesol16:02:50

right, thanks. So this is a malli bug

borkdude16:02:28

I can take a look at why this error appears though, that doesn't look entirely right in clj-kondo either

ingesol16:02:09

what would the correct args spec for clj-kondo look like?

borkdude16:02:52

what is a tuple in malli, in terms of clojure data structure?

ingesol16:02:53

This is me speculating, but I think it works on any sequence type. Vectors would make the most sense

borkdude16:02:18

then [:int :int :nilable/seqable] I think

borkdude16:02:40

$ clj-kondo --lint - --config '{:linters {:type-mismatch {:namespaces {foo {bar {:arities {3 {:args [:int :int :nilable/seqable]}}}}}}}}' <<< "(require '[foo]) (foo/bar 1 2 3)"
<stdin>:1:31: warning: Expected: seqable collection or nil, received: positive integer.