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

Add section on comparing SWHID and qualifier canonical order #29

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

rdicosmo
Copy link
Contributor

Add section on SWHID comparison, highlight recommended canonical order of qualifiers, implementing consensus on #6.

@rdicosmo rdicosmo requested a review from zvr September 11, 2023 15:21
@rdicosmo rdicosmo requested a review from zacchiro September 11, 2023 15:22
Copy link
Contributor

@zacchiro zacchiro left a comment

Choose a reason for hiding this comment

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

Only minor changes requested.
Everything else looks good to me, thanks!


### 6.3 Recommendations
One can determine whether two software artifacts are identical (bit by bit) by
comparing their core SWHIDs, ignoring all qualifiers. If the core SWHIDs match,
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: "match" is not defined here and people might wonder what it means.
I propose: "match" → "are equal"
("equal" instead of "identical" just to avoid the repetition with the sentence that follows)

- They both have the same set of qualifiers.
- The values of these qualifiers are identical. For instance, if both SWHIDs
have an `anchor` qualifier, the core SWHID values of these qualifiers should
match. Similarly, if both have a `lines` qualifier, their values should be the
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor as above + the fact "should" here is incorrect: "value of these qualifiers should match" -> "values of these qualifier are identical".

- The values of these qualifiers are identical. For instance, if both SWHIDs
have an `anchor` qualifier, the core SWHID values of these qualifiers should
match. Similarly, if both have a `lines` qualifier, their values should be the
same.
Copy link
Contributor

Choose a reason for hiding this comment

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

"their values should be the same" -> "their values are identical"

Chapters/6_Qualified_identifiers.md Show resolved Hide resolved
@rdicosmo rdicosmo dismissed zacchiro’s stale review September 16, 2023 15:50

Resolved in the updated PR

Copy link
Contributor

@zvr zvr left a comment

Choose a reason for hiding this comment

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

I agree with the content, although I will submit a slight re-structuring later.

But let's merge this for now.

@zvr zvr merged commit 3103211 into swhid:main Sep 19, 2023
1 check passed
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.

3 participants