Skip to content

add byte range and line ranges to snippet - #273

Merged
meretp merged 6 commits into
spdx:mainfrom
meretp:issue_262_snippet_range
Nov 14, 2022
Merged

meretp merged 6 commits into
spdx:mainfrom
meretp:issue_262_snippet_range

Conversation

@meretp

@meretp meretp commented Nov 10, 2022

Copy link
Copy Markdown
Collaborator

fixes #262

In this PR the mandatory field byte range and the optional field line range are added to snippets. Only the jsonyamlxml parser and writer are updated. I didn't add a validation for the mandatory field because the rdf parser/writer and tv parser/writer can't handle these fields yet. That is also why some conversion tests are skipped.

@nicoweidner nicoweidner left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some comments, but looks very good overall!

Comment thread spdx/parsers/jsonyamlxml.py Resolved
Comment thread tests/test_document.py Resolved
Comment thread spdx/parsers/jsonyamlxml.py Resolved
Comment thread spdx/parsers/jsonyamlxml.py Resolved
Comment thread spdx/writers/jsonyamlxml.py Resolved
Comment thread spdx/writers/jsonyamlxml.py Resolved
Comment thread tests/test_write_anything.py Resolved
Comment thread tests/test_write_anything.py Resolved
Comment thread tests/test_jsonyamlxml_writer.py Resolved
Comment thread tests/test_jsonyamlxml_writer.py Resolved
@meretp
meretp force-pushed the issue_262_snippet_range branch from ac4c630 to edc1b4e Compare November 11, 2022 07:14
@meretp
meretp requested a review from nicoweidner November 11, 2022 08:08
@meretp

meretp commented Nov 11, 2022

Copy link
Copy Markdown
Collaborator Author

tag-value parser and writer are also updated

@nicoweidner nicoweidner left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor coments left 🙂

Comment thread spdx/parsers/jsonyamlxml.py Resolved
Comment thread spdx/snippet.py Resolved
Comment thread tests/test_conversion.py Resolved
Comment thread tests/test_write_anything.py Resolved
Comment thread tests/test_builder.py Resolved
@meretp
meretp force-pushed the issue_262_snippet_range branch from 3cf3e02 to a1bb064 Compare November 14, 2022 10:52
@meretp
meretp requested a review from nicoweidner November 14, 2022 10:53
Comment thread spdx/writers/jsonyamlxml.py Resolved
Meret Behrens added 6 commits November 14, 2022 14:05
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
@meretp
meretp force-pushed the issue_262_snippet_range branch from a1bb064 to ba4ff1b Compare November 14, 2022 13:08
@meretp
meretp merged commit 04a1380 into spdx:main Nov 14, 2022
@meretp
meretp deleted the issue_262_snippet_range branch November 14, 2022 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

snippet class misses range field

2 participants