This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-11
Channels
- # adventofcode (1)
- # aleph (1)
- # announcements (3)
- # babashka (39)
- # beginners (84)
- # calva (1)
- # cider (17)
- # clj-kondo (15)
- # cljs-dev (43)
- # clojure (132)
- # clojure-dev (1)
- # clojure-europe (4)
- # clojure-nl (7)
- # clojure-norway (4)
- # clojure-uk (22)
- # clojurescript (56)
- # clojurex (24)
- # cursive (11)
- # data-science (2)
- # datascript (33)
- # datomic (7)
- # docker (2)
- # figwheel-main (11)
- # fulcro (2)
- # jobs (3)
- # joker (29)
- # leiningen (3)
- # nrepl (4)
- # off-topic (11)
- # planck (4)
- # reitit (5)
- # ring (4)
- # shadow-cljs (205)
- # spacemacs (5)
- # xtdb (9)
@johan528 It turned out to be a quoting issue: https://github.com/borkdude/clj-kondo/issues/602
The namespace local config is mostly for testing, it doesn't support all the options from the normal config. So it's better to put it in .clj-kondo/config.edn
anyway
Cool, missed about that quote. However, this exposes the underlying problem, that the custom macro injects the first form, giving:
(defmacro injecting-thread-first
[& body]
`(-> :inject ~@body))
(injecting-thread-first (arity-2 :y)
(arity-2 :foo))
(macroexpand-1 '(injecting-thread-first (arity-2 :y)
(arity-2 :foo)))
=> (clojure.core/-> :inject (arity-2 :y) (arity-2 :foo))
Which is still valid and should (preferrably) be treated as a ->The reason behind this weird macro is that I am writing a custom version of Ogre's macro (https://github.com/clojurewerkz/ogre/blob/master/src/clojure/clojurewerkz/ogre/anon.clj#L12)
I think you might just want to exclude linting for this macro. {:linters {:unresolved-symbol {:exclude [(your.macros/__)]}}}
Ah, yes I see now. lint-as will not help me. Going for disabling linting for that one.
Thanks for your help and very helpful tool!