From 1475aab9c280fe8597d3ede448ff14ba519f8dca Mon Sep 17 00:00:00 2001 From: dev-12 Date: Wed, 4 Feb 2026 12:37:21 +0530 Subject: [PATCH] chore(detekt): allow early returns and throws Configure detekt to ignore guard clauses that use return and throw. This enables cleaner early-exit patterns and avoids unnecessary code nesting. --- detekt.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/detekt.yml b/detekt.yml index c4dd749b4..fb999e7b1 100644 --- a/detekt.yml +++ b/detekt.yml @@ -28,6 +28,12 @@ style: ignoreAnnotated: - Preview + ReturnCount: + excludeGuardClauses: true + + ThrowsCount: + excludeGuardClauses: true + # Complexity rules complexity: -- GitLab