Fork me on GitHub
#clj-kondo
<
2023-12-30
>
greg15:12:31

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?

borkdude15:12:57

I'll try locally

👍 1
borkdude15:12:06

The problem is that the unused value linter doesn't work this way currently, only globally. Issue welcome

borkdude15:12:29

Thanks!

👍 1