This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-01
Channels
- # adventofcode (1)
- # announcements (10)
- # babashka (13)
- # beginners (104)
- # braveandtrue (2)
- # calva (5)
- # clj-kondo (23)
- # cljdoc (8)
- # clojure (10)
- # clojure-finland (1)
- # clojure-greece (1)
- # clojure-norway (2)
- # clojure-sweden (7)
- # clojure-uk (29)
- # clojurescript (20)
- # community-development (12)
- # cursive (4)
- # datomic (1)
- # duct (2)
- # emacs (24)
- # fulcro (48)
- # off-topic (5)
- # pathom (2)
- # planck (2)
- # quil (3)
- # reagent (17)
- # reitit (7)
clj-kondo is failing to ignore the symbol in a devcards.core/deftest
form, but cljs.test/deftest
works fine and :lint-as {devcards.core/deftest cljs.test/deftest}
doesn't seem to do it. Any ideas?
Can you provide a small reproducable snippet in the form:
$ clj-kondo --config '{:lint-as ...}' --lint - <<< '(ns foo (:require [devcards.core :as dc])) (dc/deftest ...))'
and show me what the current (undesired) behavior is?sure. one sec
clj-kondo --config '{:lint-as {devcards.core/deftest cljs.core/deftest}}' --lint - <<< '(ns foo (:require [cljs.test :refer-macros [is]] [devcards.core :refer-macros [deftest]])) (deftest main-test (is (= 1 1)))'
I want the error about main-test
silenced
that's weird yes, I have a similar situation with spartan.test
which I tested yesterday and worked fine: https://github.com/borkdude/spartan.spec/blob/master/.clj-kondo/config.edn
I'll look into it
defcard-rg fails too, but I figured if I could solve one, I could solve the other
hmm, this works:
clj-kondo --config '{:lint-as {spartan.test/deftest clojure.test/deftest}}' --lint - <<< '(ns foo (:require [spartan.test :refer [deftest]])) (deftest main-test)'
this also works:
clj-kondo --config '{:lint-as {devcards/deftest clojure.test/deftest}}' --lint - <<< '(ns foo (:require [devcards :refer [deftest]])) (deftest main-test)'
this also works:
clj-kondo --config '{:lint-as {devcards.core/deftest clojure.test/deftest}}' --lint - <<< '(ns foo (:require [devcards.core :refer [deftest]])) (deftest main-test)'
aaand this also works:
clj-kondo --config '{:lint-as {devcards.core/deftest cljs.test/deftest}}' --lint - <<< '(ns foo (:require [devcards.core :refer-macros [deftest]])) (deftest main-test)'
and this also works:
clj-kondo --config '{:lint-as {devcards.core/deftest cljs.test/deftest}}' --lint - <<< '(ns foo (:require [cljs.test :refer-macros [is]] [devcards.core :refer-macros [deftest]])) (deftest main-test (is true))'
^ @duckthat one does indeed pass for me
@duck Were you the same person asking me about orchestra/defn-spec
? I'm thinking about a solution like this: https://github.com/borkdude/clj-kondo/issues/682
The only difference is forms inside is
That was me