Skip to content

Commit

Permalink
fix: remove non k8s files from summary (datreeio#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
amustaque97 committed Jul 14, 2022
1 parent 21f875d commit 0a74f0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ func test(ctx *TestCommandContext, paths []string, prerunData *TestCommandData)

validationManager := evaluationResultData.ValidationManager

if prerunData.OnlyK8sFiles {
filesCount -= validationManager.IgnoredFilesCount()
}

passedYamlValidationCount := filesCount - validationManager.InvalidYamlFilesCount()

evaluationSummary := printer.EvaluationSummary{
Expand Down

0 comments on commit 0a74f0d

Please sign in to comment.