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:
+1
-1
@@ -7,4 +7,4 @@ data class ApprovalRequest(
|
||||
val sessionId: SessionId?,
|
||||
val riskSummary: ValidationRiskStats,
|
||||
val validationReport: ValidationReport
|
||||
)
|
||||
)
|
||||
|
||||
+1
-1
@@ -43,4 +43,4 @@ class ApprovalTrigger {
|
||||
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,4 +4,4 @@ data class RiskSummary(
|
||||
val errorCount: Int,
|
||||
val warningCount: Int,
|
||||
val hasCyclePoliciesMissing: Boolean
|
||||
)
|
||||
)
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
package com.correx.core.validation.artifact
|
||||
|
||||
import com.correx.core.artifactstore.ArtifactStore
|
||||
import com.correx.core.artifacts.kind.FileWrittenArtifact
|
||||
import com.correx.core.artifacts.kind.ProcessResultArtifact
|
||||
import com.correx.core.artifacts.kind.TypedArtifactSlot
|
||||
import com.correx.core.artifactstore.ArtifactStore
|
||||
import com.correx.core.events.types.ArtifactId
|
||||
import com.correx.core.validation.model.ValidationContext
|
||||
import com.correx.core.validation.model.ValidationIssue
|
||||
|
||||
@@ -51,4 +51,4 @@ class GraphValidator : Validator {
|
||||
issues = issues
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -13,4 +13,4 @@ sealed interface ValidationLocation {
|
||||
data class Session(
|
||||
val sessionId: SessionId
|
||||
) : ValidationLocation
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,4 +7,4 @@ data class ValidationReport(
|
||||
sections.any { section ->
|
||||
section.issues.any { it.severity == ValidationSeverity.ERROR }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ enum class ValidationSeverity {
|
||||
INFO,
|
||||
WARNING,
|
||||
ERROR
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -29,4 +29,4 @@ class ValidationPipeline(
|
||||
ValidationOutcome.Passed(report)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,4 +5,4 @@ import com.correx.core.validation.model.ValidationSection
|
||||
|
||||
fun interface Validator {
|
||||
suspend fun validate(context: ValidationContext): ValidationSection
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,4 +5,4 @@ import com.correx.core.validation.model.ValidationIssue
|
||||
|
||||
interface SemanticRule {
|
||||
fun validate(context: ValidationContext): List<ValidationIssue>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -17,4 +17,4 @@ class SemanticValidator(
|
||||
issues = issues
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -33,4 +33,4 @@ class CyclePolicyBindingRule(
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -57,4 +57,4 @@ class SessionValidator : Validator {
|
||||
issues = issues
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -69,4 +69,4 @@ class TransitionValidator(
|
||||
issues = issues
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user