MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / BomSWJson

Function BomSWJson

cmd/format/bomsw.go:15–22  ·  view source on GitHub ↗
(report Report, out string)

Source from the content-addressed store, hash-verified

13)
14
15func BomSWJson(report Report, out string) {
16 outWrite(out, func(w io.Writer) error {
17 doc := bomSWDoc(report)
18 encoder := json.NewEncoder(w)
19 encoder.SetIndent("", " ")
20 return encoder.Encode(doc)
21 })
22}
23
24func bomSWDoc(report Report) *model.BomSWDocument {
25

Callers 1

SaveFunction · 0.85

Calls 3

EncodeMethod · 0.95
outWriteFunction · 0.85
bomSWDocFunction · 0.85

Tested by

no test coverage detected