KT.END_OF_SENTENCE_FORMAT

Improper end of the first sentence of a KDoc comment

This rule validates the end of the first sentence of a KDoc comment. It should end with proper punctuation or with a correct URL.

Options

  • endOfSentenceFormat (default: ([.?!][ \t\n\r\f<])|([.?!:]$))

    regular expression which should match the end of the first sentence in the KDoc

The content on this page is adapted from the Detekt Docs. Copyright ©2022 The Detekt Team. All rights reserved. https://detekt.dev/comments.html