From 1b0bbb84401005801e61107a0c36443af691b8e6 Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Sat, 17 Feb 2024 04:25:41 +0600 Subject: [PATCH] Tweak detekt config --- config/detekt/detekt.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/detekt/detekt.yml b/config/detekt/detekt.yml index 0e21d99d4..11c42e80d 100644 --- a/config/detekt/detekt.yml +++ b/config/detekt/detekt.yml @@ -6,9 +6,9 @@ naming: constantPattern: '[A-Z][A-Za-z0-9]*' complexity: + LongMethod: + ignoreAnnotated: [ 'Composable' ] LongParameterList: - functionThreshold: 6 - constructorThreshold: 7 ignoreDefaultParameters: true ignoreAnnotated: [ 'Composable' ] @@ -16,5 +16,7 @@ style: MagicNumber: ignorePropertyDeclaration: true ignoreCompanionObjectPropertyDeclaration: true + ReturnCount: + excludeGuardClauses: true UnusedPrivateMember: ignoreAnnotated: [ 'Preview' ]