aboutsummaryrefslogtreecommitdiff
path: root/report.go
diff options
context:
space:
mode:
Diffstat (limited to 'report.go')
-rw-r--r--report.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/report.go b/report.go
index 5296bef..b33149a 100644
--- a/report.go
+++ b/report.go
@@ -124,6 +124,12 @@ func (rep *report) scan(conv *SPDXConv, listFile []string) (err error) {
continue
}
f.scan(conv)
+ if f.isBinary {
+ // json file should be detected as binary, since its
+ // does not have comment syntax.
+ rep.listBinary = append(rep.listBinary, f)
+ continue
+ }
if f.isUnknown {
rep.listUnknown = append(rep.listUnknown, f)
continue