This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-19
Channels
- # bangalore-clj (1)
- # beginners (8)
- # boot (102)
- # cider (1)
- # clara (14)
- # cljs-dev (2)
- # cljsrn (2)
- # clojure (49)
- # clojure-poland (3)
- # clojure-russia (4)
- # clojure-serbia (1)
- # clojure-spec (5)
- # clojure-ukraine (1)
- # clojurescript (181)
- # core-async (4)
- # cursive (2)
- # datomic (7)
- # dirac (34)
- # figwheel (3)
- # fulcro (21)
- # hoplon (5)
- # om (1)
- # parinfer (4)
- # planck (27)
- # re-frame (30)
- # reagent (11)
- # rum (6)
- # shadow-cljs (22)
- # spacemacs (4)
- # unrepl (26)
I use flycheck-joker
and have problems with false positives related to clojure.test
vars or similar ones that I require with :refer :all
(ns my-ns-test
(:require [my-ns :as sut]
[clojure.test :refer :all]))
(deftest shortest-path
(testing "ideal path"
(is (= ...
Here the joker reports Unable to resolve symbol: deftest
;
also unused namespace clojure.test
Does anyone know why is that and how can I fix it?joker doesn't work well with use
or :refer :all
. If you do :refer :all
, any symbol becomes potentially valid in your namespace, essentially preventing symbol resolution linting completely. If you want joker to resolve symbols (and warn on unresolved ones), always list all referred vars explicitely: :refer [deftest testing is are...]