KT.TRAILING_COMMA

Removal or adding of trailing comma

Consistent removal (default) or adding of trailing comma's (both on call and declaration site).

Options

  • allowTrailingComma (default: False)

    Defines whether a trailing comma (or no trailing comma) should be enforced on the defining side

  • allowTrailingCommaOnCallSite (default: False)

    Defines whether a trailing comma (or no trailing comma) should be enforced on the calling side

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