Skip to content

Commit

Permalink
better validate spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
ManApart committed Jun 30, 2024
1 parent 4029165 commit d963f74
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/main/kotlin/commands/Validate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,19 @@ fun List<Mod>.validate() {
checkCreations(nonModErrors, helpMessages)
checkExternalMods(nonModErrors, helpMessages)

printErrors(errorMap.filter { it.value.first in this }.toMap())
println()
nonModErrors.forEach { println(it) }
println()
helpMessages.forEach { println(it) }
println()
val filteredErrors = errorMap.filter { it.value.first in this }.toMap()
if (filteredErrors.isNotEmpty()) {
printErrors(filteredErrors)
println()
}
if (nonModErrors.isNotEmpty()) {
nonModErrors.forEach { println(it) }
println()
}
if (helpMessages.isNotEmpty()) {
helpMessages.forEach { println(it) }
println()
}
println(cyan("Validated $size mods"))
}

Expand Down

0 comments on commit d963f74

Please sign in to comment.