From 8febcdf8d87d85899963af245b10a6b0ecbe7445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Kr=C3=BCger?= Date: Wed, 4 May 2022 09:18:18 +0200 Subject: [PATCH] Replace deprecated Detekt configuration options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tim Krüger --- detekt.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/detekt.yml b/detekt.yml index 734b224e5..d1b2a89e7 100644 --- a/detekt.yml +++ b/detekt.yml @@ -69,7 +69,8 @@ complexity: excludes: ['**/androidTest/**'] LongParameterList: active: true - threshold: 6 + functionThreshold: 6 + constructorThreshold: 7 ignoreDefaultParameters: false MethodOverloading: active: false @@ -333,7 +334,7 @@ potential-bugs: active: false LateinitUsage: active: false - excludeAnnotatedProperties: "" + ignoreAnnotated: [] ignoreOnClassesPattern: "" UnconditionalJumpStatementInLoop: active: false @@ -439,10 +440,10 @@ style: active: false UnderscoresInNumericLiterals: active: false - acceptableDecimalLength: 5 + acceptableLength: 5 UnnecessaryAbstractClass: active: false - excludeAnnotatedClasses: "dagger.Module" + ignoreAnnotated: ["dagger.Module"] UnnecessaryApply: active: false UnnecessaryInheritance: @@ -462,7 +463,7 @@ style: allowedNames: "(_|ignored|expected|serialVersionUID)" UseDataClass: active: false - excludeAnnotatedClasses: "" + ignoreAnnotated: [] UtilityClassWithPublicConstructor: active: false VarCouldBeVal: