KT.ARGUMENT_LIST_WRAPPING

Incorrect argument list wrapping

The rule is more aggressive in inserting newlines after arguments than mentioned in the styleguide: Each argument should be on a separate line if - at least one of the arguments is - maxLineLength exceeded (and separating arguments with \n would actually help) in addition, "(" and ")" must be on separates line if any of the arguments are (otherwise on the same) See https://kotlinlang.org/docs/reference/coding-conventions.html#method-call-formatting

Options

  • indentSize (default: 4)

    indentation size

  • maxLineLength (default: 120)

    maximum line length

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