Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #112 from bridgecrewio/fix-output-splitting
Browse files Browse the repository at this point in the history
handle "Clang" in output on some systems
  • Loading branch information
mikeurbanski1 authored May 9, 2022
2 parents 432bcbe + 6076dea commit ab73a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/bridgecrew/CheckovResult.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fun getFailedChecksFromResultString(raw: String): ArrayList<CheckovResult> {
var checkovResult = "checkovResult"
val outputListOfLines = raw.split("\n").map { it.trim() }
for (i in outputListOfLines.indices) {
if (!outputListOfLines[i].startsWith('{') && !outputListOfLines[i].startsWith('[')){
if (!outputListOfLines[i].startsWith('{') && !outputListOfLines[i].startsWith('[') || outputListOfLines[i].startsWith("[Clang")){
continue
}
checkovResult = outputListOfLines.subList(i,outputListOfLines.size-1).joinToString("\n")
Expand Down

0 comments on commit ab73a69

Please sign in to comment.