Fork me on GitHub
#clj-kondo
<
2022-11-06
>
danielcompton07:11:27

Is there a way to configure clj-kondo to disable the redundant expression linter just inside Midje fact /`facts`?

danielcompton07:11:31

(facts "about tests"
  (fact "math"
    (let [res {}]
      (:status res) => 204
      (+ 1 1) => 2)))

borkdude07:11:49

You could also try lint as testing ?

borkdude07:11:12

Else try config in call, see config.md

borkdude08:11:20

Sorry for the brief answer, I’ll repost here when I’m at the kbd

borkdude08:11:25

Oh sorry, I didn't see the screenshot, so testing won't work here. Try :config-in-call

borkdude10:11:17

cc @UKFSJSM38 I think you contributed to the config for this lib right

ericdallo13:11:30

Yeah, I added some hooks and some flaky fixes, do you think that one could go to the lib exported config as well?

borkdude13:11:35

I think so, but it would be good to test it :) The :redundant-expression linter got merged with :unused-value recently. It seems that @U051KLSJF is still on an older version of kondo.

danielcompton18:11:15

Thanks! I’ll try make a docs patch, I looked at the table of contents on the config but that one didn’t pop out to me.