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

Fix typos

This commit is contained in:
koplas 2025-01-23 11:53:57 +01:00
parent 8fc7f5bfad
commit 59d2cef082
No known key found for this signature in database

View file

@ -107,7 +107,7 @@ func run(opts *options, files []string) error {
log.Printf("error: loading %q as JSON failed: %v\n", file, err)
continue
}
// Validate agsinst Schema.
// Validate against Schema.
validationErrs, err := csaf.ValidateCSAF(doc)
if err != nil {
log.Printf("error: validating %q against schema failed: %v\n",
@ -124,7 +124,7 @@ func run(opts *options, files []string) error {
fmt.Printf("%q passes the schema validation.\n", file)
}
// Check filename agains ID
// Check filename against ID
if err := util.IDMatchesFilename(eval, doc, filepath.Base(file)); err != nil {
log.Printf("%s: %s.\n", file, err)
continue