KT.LONG_PARAMETER_LIST

Functions and constructors have more parameters than a certain threshold

Reports functions and constructors which have more parameters than a certain threshold.

Options

  • functionThreshold (default: 6)

    number of function parameters required to trigger the rule

  • constructorThreshold (default: 7)

    number of constructor parameters required to trigger the rule

  • ignoreDefaultParameters (default: False)

    ignore parameters that have a default value

  • ignoreDataClasses (default: True)

    ignore long constructor parameters list for data classes

  • ignoreAnnotatedParameter (default: [])

    ignore the annotated parameters for the count

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