This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-30
Channels
- # announcements (5)
- # beginners (3)
- # biff (11)
- # cider (5)
- # clj-kondo (5)
- # cljdoc (4)
- # clojure (18)
- # clojure-dev (7)
- # clojure-europe (5)
- # clojure-gamedev (8)
- # clojure-norway (223)
- # clojurescript (4)
- # data-science (22)
- # emacs (5)
- # exercism (2)
- # fulcro (2)
- # graalvm (6)
- # jobs-discuss (4)
- # lsp (16)
- # matrix (1)
- # off-topic (41)
- # scittle (16)
- # xtdb (3)
I'm using rcf and I noticed that clj-kondo reports a warning despite I thought I could disable it. It might be by misunderstanding of clj-kondo. For the code:
(ns repl.sample.rcf
(:require
[hyperfiddle.rcf :refer [tests]]))
(tests
"same piece taken from rcf readme"
(let [xs (map identity xs)]
(last xs) := :c))
and config
{:config-in-call {hyperfiddle.rcf/tests {:linters {:unresolved-symbol {:level :off}
:unused-value {:level :off}}}}}
it still reports
./projects/repl/src/repl/sample/rcf.cljc:8:5: warning: Unused value
linting took 1052ms, errors: 0, warnings: 1
Is it because the let
is the closest scope and disabling it for tests
is irrelevant here?
How can I disable such warnings within tests
?The problem is that the unused value linter doesn't work this way currently, only globally. Issue welcome
I opened a ticket here: https://github.com/clj-kondo/clj-kondo/issues/2251