How to enforce complete documentation on Kotlin code

432 Views Asked by At

What plugin or tool should I use to enforce complete kdoc documentation on new Kotlin code? Java code is checked by checkstyle with Sun's rule set, I need a Kotlin's analogue for it.

1

There are 1 best solutions below

0
madhead On BEST ANSWER

Look at detekt and its comments rule set. Especially UndocumentedPublicClass, UndocumentedPublicFunction and UndocumentedPublicProperty.

It integrates with Maven via Ant task.