KT.OBJECT_PROPERTY_NAMING

Property names inside objects do not follow the specified naming convention

Reports property names inside objects that do not follow the specified naming convention.

Options

  • constantPattern (default: [A-Za-z][_A-Za-z0-9]*)

    naming pattern

  • propertyPattern (default: [A-Za-z][_A-Za-z0-9]*)

    naming pattern

  • privatePropertyPattern (default: (_)?[A-Za-z][_A-Za-z0-9]*)

    naming pattern

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