KT.FUNCTION_PARAMETER_NAMING

Function parameter names do not follow the specified naming convention

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

Options

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

    naming pattern

  • excludeClassPattern (default: $^)

    ignores variables in classes which match this regex

  • ignoreOverridden (default: True)

    ignores overridden functions with parameters not matching the 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