Fork me on GitHub
Cora (she/her)17:09:41

how would you get clj-kondo to lint a new assertion (is (not-thrown?...) with the same linter for (is (thrown?...)

Cora (she/her)17:09:40

within the context of clojure.test, I mean


this is currently not configurable. you could just suppress this symbol with :unresolved-symbol :exclude

Cora (she/her)17:09:04

alright, thank you!

Noah Bogart18:09:38

The way I do this (also seen in is to write a macro that throws for each new assertion and then refer them. Then, the assert-expr method will expand before the referred var can expand

Noah Bogart18:09:12

This lets you put doc strings on the vars too, which is nice

Cora (she/her)18:09:44

ahhhh that's tricky but workable. I think I'll just suppress the symbol for this tiny usage, though. thanks, Noah!

👍 1