Is it possible to suppress `equals`/`hashCode`/`to...
# dokka
c
Is it possible to suppress `equals`/`hashCode`/`toString` for all classes in the generated docs? I’d like to be able to suppress those methods from the docs even if they’re overridden.
suppressInheritedMembers
and
suppressObviousFunctions
only suppress those methods if they’re not overridden
a
I can’t find it anywhere in the Dokka documentation, but there is a KDoc
@suppress
tag https://kotlinlang.org/docs/kotlin-doc.html#suppress Based on this issue, I think Dokka supports it: https://github.com/Kotlin/dokka/issues/1612 It’s not so convenient because it requires manually adding it, but if you need something that works today…
🙏 1
c
Thanks! That works, though agreed adding
@suppress
to each function isn’t ideal
👍 1
v
Another solution is to create your own plugin for Dokka. The example is here.