From 98ae8feb384723da949d63efe5722c5ac54805b9 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 20 Sep 2023 16:57:47 +0200 Subject: [PATCH] Detekt: Disable `OptionalWhenBraces`, even if deprecated and replaced by `BracesOnWhenStatements`. Cannot do what I want with `BracesOnWhenStatements`. --- tools/detekt/detekt.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/detekt/detekt.yml b/tools/detekt/detekt.yml index 14193a1c70..802f74547d 100644 --- a/tools/detekt/detekt.yml +++ b/tools/detekt/detekt.yml @@ -3,6 +3,8 @@ style: AlsoCouldBeApply: active: true + OptionalWhenBraces: + active: false CascadingCallWrapping: active: true includeElvis: true @@ -124,7 +126,7 @@ potential-bugs: allowExplicitReturnType: false MissingPackageDeclaration: active: true - excludes: ['**/*.kts'] + excludes: [ '**/*.kts' ] NullCheckOnMutableProperty: active: true NullableToStringCall: @@ -173,7 +175,7 @@ naming: active: true FunctionNaming: active: true - ignoreAnnotated: ['Composable'] + ignoreAnnotated: [ 'Composable' ] LambdaParameterNaming: active: true NonBooleanPropertyPrefixedWithIs: @@ -234,7 +236,7 @@ Compose: active: true MultipleEmitters: active: true - # You can optionally add your own composables here + # You can optionally add your own composables here # contentEmitters: MyComposable,MyOtherComposable MutableParams: active: true