From ed125e5ae231bcb5bd810e93dcb49992b375444c Mon Sep 17 00:00:00 2001 From: Vedang Manerikar Date: Sun, 18 Jun 2023 16:58:00 +0530 Subject: [PATCH] Remove clj-kondo warning that := is an unused value `clj-kondo` does not understand that `:=` is special in `rcf/tests`. This commit adds a `clj-kondo.exports` folder as explained in their documentation. Users can use this to import the config in their projects and remove the warning. References: 1. Exporting and importing clj-kondo configuration: https://github.com/clj-kondo/clj-kondo/blob/74be7d29696c08e188d10c64b045403b21302a0b/doc/config.md?plain=1#L524 2. An explanation of the `:config-in-call` option: https://github.com/clj-kondo/clj-kondo/blob/74be7d29696c08e188d10c64b045403b21302a0b/doc/config.md#config-in-call 3. An explanation of the `:unused-value` warning that we see: https://github.com/clj-kondo/clj-kondo/blob/74be7d29696c08e188d10c64b045403b21302a0b/doc/linters.md#unused-value --- deps.edn | 2 +- resources/clj-kondo.exports/com.hyperfiddle/rcf/config.edn | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 resources/clj-kondo.exports/com.hyperfiddle/rcf/config.edn diff --git a/deps.edn b/deps.edn index 40fd4ec..89872a7 100644 --- a/deps.edn +++ b/deps.edn @@ -1,4 +1,4 @@ -{:paths ["src"] +{:paths ["src" "resources"] :deps {org.clojure/clojure {:mvn/version "1.10.3"}} :aliases {:cljs {:extra-deps {org.clojure/clojurescript {:mvn/version "1.10.896"}}} :dev {:extra-deps {thheller/shadow-cljs {:mvn/version "2.16.8"}}} diff --git a/resources/clj-kondo.exports/com.hyperfiddle/rcf/config.edn b/resources/clj-kondo.exports/com.hyperfiddle/rcf/config.edn new file mode 100644 index 0000000..3188558 --- /dev/null +++ b/resources/clj-kondo.exports/com.hyperfiddle/rcf/config.edn @@ -0,0 +1,2 @@ +{;; Removes the warning that `:=` is an unused value in `tests` + :config-in-call {hyperfiddle.rcf/tests {:ignore [:unused-value]}}}