This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-10
Channels
- # beginners (6)
- # calva (1)
- # cider (17)
- # clj-kondo (10)
- # clojure (4)
- # clojure-austin (3)
- # clojure-spec (3)
- # clojurescript (40)
- # clojurex (17)
- # core-async (10)
- # cursive (1)
- # data-science (2)
- # datomic (15)
- # emacs (10)
- # fulcro (15)
- # funcool (1)
- # graalvm (15)
- # joker (3)
- # nrepl (34)
- # off-topic (10)
- # pedestal (3)
- # rewrite-clj (6)
- # spacemacs (5)
- # sql (11)
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)
Cool, thanks.
@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.This is the version I ended up using:
(ns foo
{:clj-kondo/config {:lint-as {foo/__ clojure.core/->}}})
(defmacro __
[& body]
`(-> :inject ~@body))
(defn arity-2 [x y]
[x y])
I created a PR with a reproducible test case.