Skip to content

Commit ce2b50f

Browse files
refactor: split error messages and concatenate them to avoid line breaks as well as too long LOC
1 parent 009103e commit ce2b50f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

csaf_2_1/mandatoryTests/mandatoryTest_6_1_47.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ export function mandatoryTest_6_1_47(doc) {
8686
ctx.isValid = false
8787
ctx.errors.push({
8888
instancePath: `/vulnerabilities/${vulnerabilityIndex}/metrics/${metricIndex}/content/ssvc_v1/id`,
89-
message: `the ssvc id equals the 'document/tracking/id'
90-
even the csaf document has multiple vulnerabilities `,
89+
message:
90+
`the ssvc id equals the 'document/tracking/id' ` +
91+
`even the csaf document has multiple vulnerabilities `,
9192
})
9293
}
9394
} else {
@@ -96,8 +97,9 @@ export function mandatoryTest_6_1_47(doc) {
9697
ctx.isValid = false
9798
ctx.errors.push({
9899
instancePath: `/vulnerabilities/${vulnerabilityIndex}/metrics/${metricIndex}/content/ssvc_v1/id`,
99-
message: `the ssvc id does neither match the 'cve'
100-
nor it matches the 'text' of any item in the 'ids' array`,
100+
message:
101+
`the ssvc id does neither match the 'cve' ` +
102+
`nor it matches the 'text' of any item in the 'ids' array`,
101103
})
102104
}
103105
}

0 commit comments

Comments
 (0)