-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
A JSON file containing raw newline characters does not produce an error.
I want a JSON file containing raw newline characters to trigger a parser error, but it does not.
While the JSON parser does report an error, it proceeds to the next step without halting,
where the file appears to be accepted and processed as YAML format instead.
2024-11-18T21:50:44.234+0900 DEBUG engine/compliance.go:30 engine.ComplianceRun()
2024-11-18T21:50:44.255+0900 DEBUG engine/compliance.go:36 Config: &{Path:[samples/c.json] Categories:[] Features:[] JSON:false Basic:false Detailed:false Pdf:false Spdx:false Cdx:false Recurse:false Debug:true ConfigPath: Ntia:true Bsi:false Oct:false Fsct:false Color:false}
2024-11-18T21:50:44.255+0900 DEBUG engine/compliance.go:84 engine.getSbomDocument()
2024-11-18T21:50:44.256+0900 DEBUG sbom/sbom.go:177 SBOM detect spec:spdx format:yaml
2024-11-18T21:50:44.260+0900 DEBUG compliance/compliance.go:47 compliance.ComplianceResult()
2024-11-18T21:50:44.260+0900 DEBUG compliance/ntia.go:43 compliance.ntiaResult()
2024-11-18T21:50:44.266+0900 DEBUG engine/compliance.go:78 Compliance Report: samples/c.json
Metadata
Metadata
Assignees
Labels
No labels