diff --git a/core/pkg/resultshandling/printer/v2/htmlprinter.go b/core/pkg/resultshandling/printer/v2/htmlprinter.go index c93d0238..e9ac09f7 100644 --- a/core/pkg/resultshandling/printer/v2/htmlprinter.go +++ b/core/pkg/resultshandling/printer/v2/htmlprinter.go @@ -102,7 +102,7 @@ func (htmlPrinter *HtmlPrinter) ActionPrint(opaSessionObj *cautils.OPASessionObj template.New("htmlReport").Funcs(tplFuncMap).Parse(reportTemplate), ) - resourceTableView := bulidResourceTableView(opaSessionObj) + resourceTableView := buildResourceTableView(opaSessionObj) reportingCtx := HTMLReportingCtx{opaSessionObj, resourceTableView} err := tpl.Execute(htmlPrinter.writer, reportingCtx) if err != nil { @@ -114,7 +114,7 @@ func (htmlPrinter *HtmlPrinter) Score(score float32) { return } -func bulidResourceTableView(opaSessionObj *cautils.OPASessionObj) ResourceTableView { +func buildResourceTableView(opaSessionObj *cautils.OPASessionObj) ResourceTableView { resourceTableView := make(ResourceTableView, 0) for resourceID, result := range opaSessionObj.ResourcesResult { if result.GetStatus(nil).IsFailed() { diff --git a/core/pkg/resultshandling/printer/v2/junit.go b/core/pkg/resultshandling/printer/v2/junit.go index d072c3e4..b04a5483 100644 --- a/core/pkg/resultshandling/printer/v2/junit.go +++ b/core/pkg/resultshandling/printer/v2/junit.go @@ -49,7 +49,7 @@ type JUnitTestSuite struct { XMLName xml.Name `xml:"testsuite"` Name string `xml:"name,attr"` // Full (class) name of the test for non-aggregated testsuite documents. Class name without the package for aggregated testsuites documents. Required Disabled int `xml:"disabled,attr"` // The total number of disabled tests in the suite. optional. not supported by maven surefire. - Errors int `xml:"errors,attr"` // The total number of tests in the suite that errored + Errors int `xml:"errors,attr"` // The total number of tests in the suite that errors Failures int `xml:"failures,attr"` // The total number of tests in the suite that failed Hostname string `xml:"hostname,attr"` // Host on which the tests were executed ? cluster name ? ID int `xml:"id,attr"` // Starts at 0 for the first testsuite and is incremented by 1 for each following testsuite @@ -181,7 +181,7 @@ func testsCases(results *cautils.OPASessionObj, controls reportsummary.IControls testCase.Failure = &testCaseFailure } else if control.GetStatus().IsSkipped() { testCase.SkipMessage = &JUnitSkipMessage{ - Message: "", // TODO - fill after statusInfo is supportred + Message: "", // TODO - fill after statusInfo is supported } } diff --git a/core/pkg/resultshandling/printer/v2/resourcetable.go b/core/pkg/resultshandling/printer/v2/resourcetable.go index 0805f03f..f39657a8 100644 --- a/core/pkg/resultshandling/printer/v2/resourcetable.go +++ b/core/pkg/resultshandling/printer/v2/resourcetable.go @@ -29,7 +29,7 @@ func (prettyPrinter *PrettyPrinter) resourceTable(opaSessionObj *cautils.OPASess if !ok { continue } - fmt.Fprintf(prettyPrinter.writer, "\n", getSeparator("#"), "\n") + fmt.Fprintf(prettyPrinter.writer, "\n%s\n", getSeparator("#")) if source, ok := opaSessionObj.ResourceSource[resourceID]; ok { fmt.Fprintf(prettyPrinter.writer, "Source: %s\n", source.RelativePath)