Hi all, I need generate coverage for inline doc at...
# dokka
y
Hi all, I need generate coverage for inline doc at my code anyone try it before ?
i
Hi! Could you elaborate?
y
according coding snippet you find one method not document is there tool highlight or remark this method not documented
@Ignat Beresnev or something like this after generation documentation coverage of documented methods
i
Oh, I see I don't think it's possible to generate coverage out of the box, but Dokka has a
reportUndocumented
configuration property, which prints all undocumented declarations - maybe it'll be enough for your use case? If you want a coverage percentage, you can write a Dokka plugin. Have a look at how this flag works (ReportUndocumentedTransformer), and implement something similar to calculate coverage. We've also updated developer guides for 1.7.20, so you can find some information on writing plugins here.
🙏 1
y
is there example to do it as task at gradle?
And then you can just apply it as a plugin:
Copy code
dependencies{
    dokkaHtmlPlugin("...")
}