Skip to content

Commit

Permalink
remove spdxjson decoder and validator
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
  • Loading branch information
wagoodman committed Oct 22, 2021
1 parent e0c1eff commit 6ad50c2
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 6,981 deletions.
4 changes: 0 additions & 4 deletions internal/formats/formats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ func TestIdentify(t *testing.T) {
fixture: "test-fixtures/alpine-syft.json",
expected: format.JSONOption,
},
{
fixture: "test-fixtures/alpine-spdx.json",
expected: format.SPDXJSONOption,
},
}
for _, test := range tests {
t.Run(test.fixture, func(t *testing.T) {
Expand Down
25 changes: 0 additions & 25 deletions internal/formats/spdx22json/decoder.go

This file was deleted.

107 changes: 0 additions & 107 deletions internal/formats/spdx22json/decoder_test.go

This file was deleted.

6 changes: 3 additions & 3 deletions internal/formats/spdx22json/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package spdx22json

import "github.com/anchore/syft/syft/format"

// note: this format is LOSSY relative to the syftjson formation, which means that decoding may not provide full syft native models
// note: this format is LOSSY relative to the syftjson formation, which means that decoding and validation is not supported at this time
func Format() format.Format {
return format.NewFormat(
format.SPDXJSONOption,
encoder,
decoder,
validator,
nil,
nil,
)
}
3,388 changes: 0 additions & 3,388 deletions internal/formats/spdx22json/test-fixtures/sboms/alpine-spdx.json

This file was deleted.

40 changes: 0 additions & 40 deletions internal/formats/spdx22json/to_syft_model.go

This file was deleted.

26 changes: 0 additions & 26 deletions internal/formats/spdx22json/validator.go

This file was deleted.

0 comments on commit 6ad50c2

Please sign in to comment.