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
@@ -8,4 +8,4 @@ enum class ApprovalMode {
PROMPT,
AUTO,
YOLO
}
}
@@ -56,4 +56,4 @@ class DefaultSessionReducer : SessionReducer {
updatedAt = event.metadata.timestamp
)
}
}
}
@@ -13,4 +13,4 @@ class DefaultSessionRepository(
sessionId,
replayer.rebuild(sessionId),
)
}
}
@@ -16,4 +16,4 @@ class SessionCounterProjection(
): SessionCounterState {
return state.copy(count = state.count + 1)
}
}
}
@@ -3,4 +3,4 @@ package com.correx.core.sessions
data class SessionCounterState(
val sessionId: String,
val count: Int
)
)
@@ -16,4 +16,4 @@ class SessionProjector(
state: SessionState,
event: StoredEvent
): SessionState = reducer.reduce(state, event)
}
}
@@ -7,4 +7,4 @@ interface SessionReducer {
state: SessionState,
event: StoredEvent
): SessionState
}
}
@@ -7,4 +7,4 @@ enum class SessionStatus {
COMPLETED,
FAILED,
;
}
}
@@ -3,4 +3,4 @@ package com.correx.core.sessions
sealed interface TransitionResult {
data class Applied(val newState: SessionStatus) : TransitionResult
data object Rejected : TransitionResult
}
}
@@ -2,4 +2,4 @@ package com.correx.core.sessions.projections
import com.correx.testing.contracts.fixtures.projections.CountingProjectionContractTest
class SessionCounterProjectionTest : CountingProjectionContractTest()
class SessionCounterProjectionTest : CountingProjectionContractTest()