Minor fixes

This commit is contained in:
David Wertenteil
2022-01-30 08:17:43 +02:00
committed by GitHub
4 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -3,4 +3,5 @@
*debug*
*vender*
*.pyc*
.idea
.idea
ca.srl
+2 -2
View File
@@ -96,7 +96,7 @@ func (v *VersionCheckHandler) CheckLatestVersion(versionData *VersionCheckReques
if latestVersion.ClientUpdate != "" {
if BuildNumber != "" && BuildNumber < latestVersion.ClientUpdate {
WarningDisplay(os.Stderr, warningMessage(latestVersion.Client, latestVersion.ClientUpdate), "\n")
WarningDisplay(os.Stderr, warningMessage(latestVersion.Client, latestVersion.ClientUpdate)+"\n")
}
}
@@ -106,7 +106,7 @@ func (v *VersionCheckHandler) CheckLatestVersion(versionData *VersionCheckReques
// }
if latestVersion.Message != "" {
InfoDisplay(os.Stderr, latestVersion.Message, "\n")
InfoDisplay(os.Stderr, latestVersion.Message+"\n")
}
return nil
@@ -49,10 +49,7 @@ func (prettyPrinter *PrettyPrinter) printResults(controls *reportsummary.Control
controlSummary := controls.GetControl(reportsummary.EControlCriteriaName, prettyPrinter.sortedControlNames[i]) // summaryDetails.Controls ListControls().All() Controls.GetControl(ca)
prettyPrinter.printTitle(controlSummary)
prettyPrinter.printResources(controlSummary, allResources)
if controlSummary.GetStatus().IsSkipped() {
prettyPrinter.printSummary(prettyPrinter.sortedControlNames[i], controlSummary)
}
prettyPrinter.printSummary(prettyPrinter.sortedControlNames[i], controlSummary)
}
}
+4 -1
View File
@@ -33,7 +33,10 @@ func (resultsHandler *ResultsHandler) HandleResults(scanInfo *cautils.ScanInfo)
fmt.Println(err)
}
return opaSessionObj.Report.SummaryDetails.Score
score := opaSessionObj.Report.SummaryDetails.Score
resultsHandler.printerObj.Score(score)
return score
}
// CalculatePostureScore calculate final score