Zac Sweers
08/08/2023, 5:25 PMAtul Gupta
08/08/2023, 7:07 PMOptionalWhenBraces
is deprecated in favour of BracesOnWhen(When|If)Statements
comes with config options which you can customise as below
BracesOnIfStatements:
active: true
singleLine: 'consistent'
multiLine: 'consistent'
see https://detekt.dev/docs/rules/style/#bracesonifstatementsAtul Gupta
08/08/2023, 7:08 PMBracesOnIfStatements:
active: true
singleLine: 'never'
multiLine: 'always'
BracesOnWhenStatements:
active: true
singleLine: 'never'
multiLine: 'always'
gammax
08/09/2023, 2:40 PMOptionalWhenBraces
is going in 2.0:
https://github.com/detekt/detekt/pull/6322
Should be marked as deprecated in 1.23.1