redplanetlabs / rama-clj-kondo

clj-kondo hooks for Rama code
Apache License 2.0
11 stars 0 forks source link

Dataflow code doesn't work well with `:invalid-arity` linter #10

Open vemv opened 3 weeks ago

vemv commented 3 weeks ago

Kondo's :invalid-arity linter is generally super useful.

However whenever it sees code like this:

(identity *foos :> *result)

It sees three arguments for clojure.core/identity, not one.

It would be nice to be able to teach it to ignore every argument including/after :>, as long one is inside a <<query-topology call.

I can imagine how this isn't trivial though.

Cheers - V