Change to JSON-formatted expected warnings#2772
Conversation
Signed-off-by: Steve Winslow <steve@swinslow.net>
xsuchy
left a comment
There was a problem hiding this comment.
OMG, this is much better. Thank you.
|
Thanks @xsuchy! @goneall, when you have a minute to take a look at this as well as the related changes to the publisher at spdx/LicenseListPublisher#216, I'd welcome your thoughts in particular. |
goneall
left a comment
There was a problem hiding this comment.
Suggested change to support possible future warnings in the license list publisher.
| @@ -0,0 +1,19 @@ | |||
| [ | |||
There was a problem hiding this comment.
Since the functionality of the "ignore warnings" is to ignore all warnings, not just duplicate licenses (even if that is the only warnings being generated currently), suggest we change this from a JSON array to a JSON object with 2 properties:
duplicatesadditionalWarnings
both would be arrays.
e.g.:
{
"duplicates" : [ ["AGPL ...], ...],
"additionalWarnings": []
}
|
@swinslow |
This is a draft PR for changing to a JSON-formatted version of the
expected-warningsfile. This corresponds to the related PR at spdx/LicenseListPublisher#216.This should not be merged until after the 3.27.0 release is completed (which should be within the next 1-2 days, for real this time...)3.27.0 is now released, so let's see how we feel about moving this one forward!The new
expected-warnings.jsonfile is formatted as an array of arrays of strings. Each array of strings is a list of license IDs that should together be treated as ignored warnings, if they are interpreted as being duplicates during the parsing and license list publishing process. (The specifics of how the publisher can work with this are described in the PR at spdx/LicenseListPublisher#216.)This should be much easier to maintain than the existing list of "Duplicates licenses:" strings. Open to thoughts on the format or any other considerations / concerns.
Signed-off-by: Steve Winslow steve@swinslow.net