chore(damn): detekt, build, tests, formatting

fixed detekt issues where possible.
fixed disttar failing build because tools is added twice in the server module.
added workflowId where required.
fixed some tests not being recognized because of runBlocking without explicit return type.
formatting + imports.
This commit is contained in:
2026-05-22 00:10:05 +04:00
parent 2c459da009
commit f827685ed0
185 changed files with 1134 additions and 832 deletions
@@ -77,4 +77,4 @@ class InMemoryEventStore : EventStore {
return stored
}
}
}
@@ -19,7 +19,7 @@ import kotlinx.coroutines.withContext
import kotlinx.datetime.Instant
import java.sql.Connection
import java.sql.ResultSet
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.*
class SqliteEventStore(
private val connection: Connection,
@@ -254,4 +254,4 @@ private fun ResultSet.toStoredEvent(jsonSerializer: JsonEventSerializer): Stored
),
sequence = getLong("sequence"),
payload = jsonSerializer.deserialize(getString("payload"))
)
)
@@ -21,7 +21,7 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.launch
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.*
class LiveArtifactRepository(
private val eventStore: EventStore,
@@ -20,4 +20,4 @@ object JDBCHelper {
autoCommit = oldAutoCommit
}
}
}
}
@@ -5,4 +5,4 @@ import com.correx.testing.contracts.fixtures.events.store.EventStoreContractTest
class InMemoryEventStoreTest : EventStoreContractTest() {
override fun store(): EventStore = InMemoryEventStore()
}
}
@@ -20,4 +20,4 @@ class InMemoryReplayTest : SessionReplayContractTest() {
SessionCounterProjection("s1")
)
}
}
}
@@ -10,4 +10,4 @@ class SqliteEventStoreTest : EventStoreContractTest() {
val conn = DriverManager.getConnection("jdbc:sqlite::memory:")
return SqliteEventStore(conn, artifactStore = NoopArtifactStore())
}
}
}
@@ -26,4 +26,4 @@ class SqliteReplayTest : SessionReplayContractTest() {
SessionCounterProjection("s1")
)
}
}
}