Fork me on GitHub
#clj-kondo
<
2019-11-10
>
johanwiren10:11:43

How do I make this not give an arity error from clj-kondo? Tried with the config :lint-as to no effect. (Updated sample below)

borkdude10:11:00

I can check tonight, afk now

johanwiren10:11:46

Cool, thanks.

borkdude15:11:54

@johan528 Your example gives:

$ clj-kondo --lint /tmp/foo.clj
linting took 11ms, errors: 0, warnings: 0
on my machine. I did have to remove a couple of weird Unicode characters though.

borkdude15:11:14

This is the version I ended up using:

(ns foo
  {:clj-kondo/config {:lint-as {foo/__ clojure.core/->}}})

(defmacro __
  [& body]
  `(-> :inject [email protected]))

(defn arity-2 [x y]
  [x y])

johanwiren08:11:54

I created a PR with a reproducible test case.