KT.CONSTRUCTOR_PARAMETER_NAMING

Constructor parameter names do not follow the specified naming convention

Reports constructor parameter names that do not follow the specified naming convention.

Options

  • parameterPattern (default: [a-z][A-Za-z0-9]*)

    naming pattern

  • privateParameterPattern (default: [a-z][A-Za-z0-9]*)

    naming pattern

  • excludeClassPattern (default: $^)

    ignores variables in classes which match this regex

  • ignoreOverridden (default: True)

    ignores constructor properties that have the override modifier

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