Correct indentation not applied to when
expressions with trailing commas enabled
#5174
Labels
when
expressions with trailing commas enabled
#5174
Expected Behavior
When running detekt with both trailing commas and indentation enabled, i.e.
Trailing commas should be added as appropriate and indentation should be applied.
For example something like this:
should be formatted as this:
Observed Behavior
What happens is this:
(until detekt is ran for a second time and then the expected output is produced.)
Steps to Reproduce
Enable trailing commas and observe
when
expresssions formatting incorrectly on first run of detekt.Context
Preventing team from agreeing to enable the trailing commas option and manually formatting.
Your Environment
Tested on Detekt 1.19.0 & 1.21.0
The text was updated successfully, but these errors were encountered: