1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Add new requirement sections 1 and 2 to report

This commit is contained in:
Sascha L. Teichmann 2023-02-01 16:00:31 +01:00
parent cbd9dead37
commit 8425644886
4 changed files with 49 additions and 5 deletions

View file

@ -73,6 +73,11 @@ func (r *Requirement) HasErrors() bool {
return false
}
// Append appends messages to requirement.
func (r *Requirement) Append(msgs []Message) {
r.Messages = append(r.Messages, msgs...)
}
// HasErrors tells if this domain has errors.
func (d *Domain) HasErrors() bool {
for _, r := range d.Requirements {