From 445bc3f1584950cc9ea43e6c8c7974a5c543e398 Mon Sep 17 00:00:00 2001 From: Nelson Osacky Date: Mon, 28 Sep 2026 15:25:04 +0200 Subject: [PATCH] build(detekt): Apply remaining Compose guide settings Add the rest of detekt's Compose guide on top of the FunctionNaming change from #6176. Keep accepting SCREAMING_CASE top-level constants, because the guide's PascalCase-only pattern would flag every existing TRACE_ORIGIN-style constant. Refs JAVA-748 Co-Authored-By: Claude Opus 5.5 (1M context) --- detekt.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/detekt.yml b/detekt.yml index 09d69d7776..e8a01a8713 100644 --- a/detekt.yml +++ b/detekt.yml @@ -1,6 +1,16 @@ style: ReturnCount: max: 3 + MagicNumber: + ignorePropertyDeclaration: true + UnusedPrivateMember: + ignoreAnnotated: ['Preview'] naming: FunctionNaming: ignoreAnnotated: ['Composable'] + TopLevelPropertyNaming: + # Accept both SCREAMING_CASE and Compose's PascalCase constants. + constantPattern: '[A-Z][_A-Za-z0-9]*' +complexity: + TooManyFunctions: + ignoreAnnotatedFunctions: ['Preview']