Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduplicate even more things #1359

Merged
merged 4 commits into from
Mar 9, 2024

Conversation

BillyONeal
Copy link
Member

Followup to #1355

Also renames the JSON documents that talk to tests and to artifacts to follow the convention used elsewhere.

Followup to microsoft#1355

Also renames the JSON documents that talk to tests and to artifacts to follow the convention used elsewhere.
rel.insert("spdxElementId", "SPDXRef-port");
rel.insert("relationshipType", "GENERATES");
rel.insert("relatedSpdxElement", "SPDXRef-binary");
rel.insert(JsonIdSpdxCapitalElementCapitalId, JsonIdMixedCaseSPDXRefPort);
Copy link
Contributor

@ras0219-msft ras0219-msft Mar 4, 2024

Choose a reason for hiding this comment

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

Suggestion: the SPDXRef values should be a different semantic category than JsonId. For example:

SPDXRefDocument
SPDXRefPort
SPDXRefBinary

I think a lot of the SPDX stuff may form its own semantic category as a 'subset' of JSON: SPDXGenerates, SPDXNoAssertion, etc.
(as-is is also ok)

Copy link
Member Author

Choose a reason for hiding this comment

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

I separated SPDX values that otherwise needed a lot of 'MixedCase' / 'AllCaps' / 'Underscore' / etc. into their own group.

@BillyONeal BillyONeal merged commit 06553af into microsoft:main Mar 9, 2024
5 checks passed
@BillyONeal BillyONeal deleted the deduplicate-string-literals2 branch March 9, 2024 01:06
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.

2 participants