Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enforce complete documentation on Kotlin code

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.

like image 457
andreoss Avatar asked Dec 07 '25 05:12

andreoss


1 Answers

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

It integrates with Maven via Ant task.

like image 80
madhead - StandWithUkraine Avatar answered Dec 08 '25 19:12

madhead - StandWithUkraine