Этап 1: detekt (статанализ + ktlint-форматирование) с baseline
CI / verify (push) Has been cancelled
CI / release (push) Has been cancelled

- detekt 1.23.8 применён ко всем НАШИМ модулям (vendor-форк исключён),
  +formatting-ruleset (обёртка ktlint). Совместим с Kotlin 2.3 (проверено).
- config/detekt/detekt.yml — настройки под наш код (LongMethod 120, MaxLine 140,
  MagicNumber off — dp/цвета отдельно, FunctionNaming off — @Composable Заглавные).
- detekt-baseline.xml по модулям: ~403 текущих замечаний зафиксированы →
  detekt зелёный, дальше ловит только НОВЫЕ. detekt в CI (ci.yml verify).

Проверено: detektBaseline + detekt BUILD SUCCESSFUL.
This commit is contained in:
b-dev-mobile
2026-07-07 23:36:40 +00:00
parent ab8fa70e51
commit ac438269c5
17 changed files with 549 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0" ?>
<SmellBaseline>
<ManuallySuppressedIssues/>
<CurrentIssues>
<ID>ArgumentListWrapping:TasksComponents.kt$(16.dp)</ID>
<ID>ArgumentListWrapping:TasksComponents.kt$(18.dp)</ID>
<ID>ArgumentListWrapping:TasksComponents.kt$(model = tasksAsset(serverUrl, iconPath), contentDescription = null, modifier = Modifier.size(16.dp))</ID>
<ID>ArgumentListWrapping:TasksComponents.kt$(model = tasksAsset(serverUrl, iconPath), contentDescription = null, modifier = Modifier.size(18.dp))</ID>
<ID>ArgumentListWrapping:TasksComponents.kt$(serverUrl, iconPath)</ID>
<ID>ArgumentListWrapping:TasksGrouping.kt$TasksGrouping$(compareByDescending&lt;TaskItem&gt; { it.dueLocalDate() ?: LocalDate.MIN } .thenBy { it.summary.lowercase() })</ID>
<ID>Indentation:TasksComponents.kt$ </ID>
<ID>LongMethod:TasksComponents.kt$@Composable fun TaskDetailSheet( visible: Boolean, serverUrl: String, task: TaskItem?, saving: Boolean, onDismiss: () -&gt; Unit, onSwipeBack: () -&gt; Unit = onDismiss, onToggleComplete: () -&gt; Unit, onSave: (summary: String, due: String, priority: Int, description: String) -&gt; Unit, onDelete: () -&gt; Unit, )</ID>
<ID>MaximumLineLength:TasksComponents.kt$ </ID>
<ID>NoUnusedImports:TasksComponents.kt$ru.forbion.f7cloud.feature.tasks.TasksComponents.kt</ID>
<ID>UnusedParameter:TasksComponents.kt$onCreateCollapse: () -&gt; Unit</ID>
<ID>UnusedPrivateProperty:TasksComponents.kt$private val TasksTagBg = Color(0xFFDAEDD6)</ID>
<ID>UnusedPrivateProperty:TasksComponents.kt$private val TasksTagText = Color(0xFF28A413)</ID>
<ID>Wrapping:TasksGrouping.kt$TasksGrouping$(</ID>
<ID>Wrapping:TasksViewModel.kt$TasksViewModel$(</ID>
</CurrentIssues>
</SmellBaseline>