Skip to content

Commit 25c1cdd

Browse files
committed
fix: linter errors
1 parent 0ec4048 commit 25c1cdd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pkg/apis/aquasecurity/v1alpha1/compliance_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func FromDetailReport(sr *report.ComplianceReport) *ComplianceReport {
221221
for _, r := range sr.Results {
222222
for _, ms := range r.Misconfigurations {
223223
checks = append(checks, ComplianceCheck{
224-
ID: ms.AVDID,
224+
ID: ms.ID,
225225
Target: r.Target,
226226
Title: ms.Title,
227227
Description: ms.Description,

pkg/policy/policy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,9 @@ func resourceBytes(resource client.Object, inputs [][]byte) ([]byte, error) {
339339
return inputResource, nil
340340
}
341341

342-
// GetResultID return the result id found in aliases (legacy) otherwise use AvdID
342+
// GetResultID return the result id found in aliases (legacy) otherwise use ID
343343
func GetResultID(result scan.Result) string {
344-
id := result.Rule().AVDID
344+
id := result.Rule().ID
345345
if len(result.Rule().Aliases) > 0 {
346346
id = result.Rule().Aliases[0]
347347
}

pkg/policy/policy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ func getPolicyResults(results scan.Results) Results {
856856
} else {
857857
msgs = nil
858858
}
859-
id := result.Rule().AVDID
859+
id := result.Rule().ID
860860
if len(result.Rule().Aliases) > 0 {
861861
id = result.Rule().Aliases[0]
862862
}

0 commit comments

Comments
 (0)