Wire ktlint-gradle 14.2.0 and detekt 2.0.0-alpha.5 (the only detekt line with Gradle 9 support) through the version catalog. - .editorconfig: official Kotlin style, 120-col limit, @Composable exempt from function-naming. - config/detekt/detekt.yml: slim overrides on detekt's defaults — @Composable exemptions for the OOP-era metrics, sane ReturnCount / ThrowsCount / TooManyFunctions thresholds, and TooGenericExceptionCaught off at the resilient network/push boundaries (which now log). Findings fixed in code (behaviour-preserving; 81 unit tests still pass): - SwallowedException: SendWorker / IdleService now log the caught exception. - roleOf (Folder) and extractBody (ImapClient) split into named helpers. - MailSyncer: hoisted a 4-condition `if` into a named val. - TopDest extracted to its own file; ~14 magic numbers -> named constants. The remainder is the ktlint auto-format across the module. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
8 lines
241 B
INI
8 lines
241 B
INI
root = true
|
|
|
|
[*.{kt,kts}]
|
|
ktlint_code_style = intellij_idea
|
|
max_line_length = 120
|
|
# @Composable functions are PascalCase by convention — don't flag them as bad function names.
|
|
ktlint_function_naming_ignore_when_annotated_with = Composable
|