Consider this fragment (extendedIndentForExpressionBodies is off, extendedIndentAfterOperators is on). Note the expressions are wrapped immediately after the opening parenthesis:
val v1 = (
true)
val v2 = (
1 + 2)
This is exactly how IDEA with Kotlin style settings applied formats the fragment:

IDEA
For IDEA, the continuation indent is non-configurable and is always on.
diKTat
Expected behaviour
For diKTat, the indent within an expression should depend on the value of extendedIndentAfterOperators.
Actual behaviour
Still, diKTat expects a single indent regardless of extendedIndentAfterOperators. In fact, none of the extendedIndent* flags can change the actual behaviour in this context.
Notes
Environment information
- diktat version:
1.2.2-SNAPSHOT at a17825a
Consider this fragment (
extendedIndentForExpressionBodiesis off,extendedIndentAfterOperatorsis on). Note the expressions are wrapped immediately after the opening parenthesis:This is exactly how IDEA with Kotlin style settings applied formats the fragment:
IDEA
For IDEA, the continuation indent is non-configurable and is always on.
diKTat
Expected behaviour
For diKTat, the indent within an expression should depend on the value of
extendedIndentAfterOperators.Actual behaviour
Still, diKTat expects a single indent regardless of
extendedIndentAfterOperators. In fact, none of theextendedIndent*flags can change the actual behaviour in this context.Notes
WRONG_INDENTATION: false positives for parentheses-surrounded infix expressions #1409 (see 1445b6e).Environment information
1.2.2-SNAPSHOTat a17825a