KT.TOP_LEVEL_PROPERTY_NAMING

Top level constant does not follow the specified naming convention

Reports top level constant that do not follow the specified naming convention.

Options

  • constantPattern (default: [A-Z][_A-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