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:
parent
cbd9dead37
commit
8425644886
4 changed files with 49 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue