Skip to content

Commit 42e4a2a

Browse files
runningcodeclaude
andauthored
build(detekt): Apply remaining Compose guide settings (#6179)
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) <noreply@anthropic.com>
1 parent f24a001 commit 42e4a2a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎detekt.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
style:
22
ReturnCount:
33
max: 3
4+
MagicNumber:
5+
ignorePropertyDeclaration: true
6+
UnusedPrivateMember:
7+
ignoreAnnotated: ['Preview']
48
naming:
59
FunctionNaming:
610
ignoreAnnotated: ['Composable']
11+
TopLevelPropertyNaming:
12+
# Accept both SCREAMING_CASE and Compose's PascalCase constants.
13+
constantPattern: '[A-Z][_A-Za-z0-9]*'
14+
complexity:
15+
TooManyFunctions:
16+
ignoreAnnotatedFunctions: ['Preview']

0 commit comments

Comments
 (0)