diff --git a/cmd/rootutils.go b/cmd/rootutils.go index 62bfceaf..6191a682 100644 --- a/cmd/rootutils.go +++ b/cmd/rootutils.go @@ -77,7 +77,7 @@ func initEnvironment() { ) if err != nil { - logger.L().Fatal("failed to to get services from server", helpers.Error(err), helpers.String("server", rootInfo.DiscoveryServerURL)) + logger.L().Fatal("failed to get services from server", helpers.Error(err), helpers.String("server", rootInfo.DiscoveryServerURL)) return } diff --git a/core/cautils/rbac.go b/core/cautils/rbac.go index b44e766c..63e679b1 100644 --- a/core/cautils/rbac.go +++ b/core/cautils/rbac.go @@ -85,7 +85,7 @@ func (rbacObjects *RBACObjects) rbacObjectsToResources(resources *rbacutils.Rbac if err != nil { return nil, err } - crmap["apiVersion"] = "rbac.authorization.k8s.io/v1" // TODO - is the the correct apiVersion? + crmap["apiVersion"] = "rbac.authorization.k8s.io/v1" // TODO - is the correct apiVersion? crIMeta := workloadinterface.NewWorkloadObj(crmap) crIMeta.SetKind("ClusterRole") allresources[crIMeta.GetID()] = crIMeta @@ -95,7 +95,7 @@ func (rbacObjects *RBACObjects) rbacObjectsToResources(resources *rbacutils.Rbac if err != nil { return nil, err } - crmap["apiVersion"] = "rbac.authorization.k8s.io/v1" // TODO - is the the correct apiVersion? + crmap["apiVersion"] = "rbac.authorization.k8s.io/v1" // TODO - is the correct apiVersion? crIMeta := workloadinterface.NewWorkloadObj(crmap) crIMeta.SetKind("Role") allresources[crIMeta.GetID()] = crIMeta @@ -105,7 +105,7 @@ func (rbacObjects *RBACObjects) rbacObjectsToResources(resources *rbacutils.Rbac if err != nil { return nil, err } - crmap["apiVersion"] = "rbac.authorization.k8s.io/v1" // TODO - is the the correct apiVersion? + crmap["apiVersion"] = "rbac.authorization.k8s.io/v1" // TODO - is the correct apiVersion? crIMeta := workloadinterface.NewWorkloadObj(crmap) crIMeta.SetKind("ClusterRoleBinding") allresources[crIMeta.GetID()] = crIMeta @@ -115,7 +115,7 @@ func (rbacObjects *RBACObjects) rbacObjectsToResources(resources *rbacutils.Rbac if err != nil { return nil, err } - crmap["apiVersion"] = "rbac.authorization.k8s.io/v1" // TODO - is the the correct apiVersion? + crmap["apiVersion"] = "rbac.authorization.k8s.io/v1" // TODO - is the correct apiVersion? crIMeta := workloadinterface.NewWorkloadObj(crmap) crIMeta.SetKind("RoleBinding") allresources[crIMeta.GetID()] = crIMeta diff --git a/core/pkg/hostsensorutils/log_coupling.go b/core/pkg/hostsensorutils/log_coupling.go index 7b3e848c..d27a6408 100644 --- a/core/pkg/hostsensorutils/log_coupling.go +++ b/core/pkg/hostsensorutils/log_coupling.go @@ -39,7 +39,7 @@ func (lm *LogsMap) isDuplicated(logContent string) bool { return ok } -// GgtOccurrence retrieve the number of occurrences logContent has been used. +// getOccurrence retrieve the number of occurrences logContent has been used. func (lm *LogsMap) getOccurrence(logContent string) int { lm.Lock() occurrence, ok := lm.usedLogs[logContent] diff --git a/core/pkg/resultshandling/printer/v2/utils.go b/core/pkg/resultshandling/printer/v2/utils.go index 255d1362..ec1a6ab2 100644 --- a/core/pkg/resultshandling/printer/v2/utils.go +++ b/core/pkg/resultshandling/printer/v2/utils.go @@ -16,7 +16,7 @@ import ( const indicator = "†" -// finalizeV2Report finalize the results objects by copying data from map to lists +// FinalizeResults finalize the results objects by copying data from map to lists func FinalizeResults(data *cautils.OPASessionObj) *reporthandlingv2.PostureReport { report := reporthandlingv2.PostureReport{ SummaryDetails: data.Report.SummaryDetails,