Closed NoahTheDuke closed 1 day ago
The decision to use def
was to make linting docstrings simple. However, this clashes if the clj-kondo linter :missing-docstrings
is set to :info
or higher.
Alternatively, we could use clojure.test/deftest
, but then that should warn for :unused-value
on the docstring if it's provided (it currently doesn't, but I suspect that's a clj-kondo bug).
The third option is to write a custom clj-kondo hook, which would cover this. Maybe just wrap the docstring in a comment
block? I need to think about this.
Wrote a custom hook in https://github.com/NoahTheDuke/lazytest/commit/2223d91933dc837bf39e940a019e1ec8621931e2.
From the slack channel: