This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-06
Channels
- # adventofcode (99)
- # announcements (9)
- # aws (3)
- # babashka (22)
- # beginners (90)
- # boot (2)
- # calva (22)
- # cider (8)
- # clj-kondo (14)
- # cljsrn (20)
- # clojure (24)
- # clojure-europe (4)
- # clojure-italy (3)
- # clojure-losangeles (1)
- # clojure-nl (83)
- # clojure-spain (1)
- # clojure-spec (46)
- # clojure-uk (43)
- # clojuredesign-podcast (70)
- # clojurescript (40)
- # cursive (25)
- # datomic (9)
- # duct (3)
- # emacs (14)
- # figwheel-main (2)
- # fulcro (61)
- # graalvm (8)
- # juxt (7)
- # kaocha (2)
- # leiningen (19)
- # luminus (5)
- # malli (58)
- # off-topic (4)
- # re-frame (11)
- # reitit (5)
- # rewrite-clj (3)
- # shadow-cljs (63)
- # sql (5)
- # testing (5)
- # tools-deps (26)
- # uncomplicate (2)
- # vim (4)
Secretary's defroute macro trigger's unresolved symbol ...
. I assume this 'false positive' might come up with quite a few libraries that use a def* pattern, or any macro for that matter. Any ideas of what I can do, other than just trying to ignore it?
@celwell it seems this pattern is co-incidentally a lot like clojure.core/defn:
$ clj -A:clj-kondo --config '{:lint-as {secretary.core/defroute clojure.core/defn}}' --lint /tmp/foo.clj
linting took 210ms, errors: 0, warnings: 0
(require '[secretary.core :as sec])
(sec/defroute home-path "/" [x] x)
(home-path 1)
@plexus There is an open issue for this: https://github.com/borkdude/clj-kondo/issues/560 It's not yet implemented.
There is a proposal in the issue and it might not be too hard to implement, so if you're interested, go for it.
Otherwise, I bumped the priority of the issue in the board, so hopefully it shouldn't be too long
If you decide to work on it, please let me know, so I can set the issue in progress and assign a name to it
I'll let you know, I have an open PR on rep
that I should probably wrap up before opening up new ones 🙂
I’m getting unresolved symbol
errors when using :refer :all
(as generated by Leiningen’s test files). Is that expected or are they supposed to be hidden after this fix? I am on version 2019.11.23 <https://github.com/borkdude/clj-kondo/commit/7ee6199b93528701b2bfe5b7a8ddcbff96a0b956>