You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Remove any YAML front matter from ScanCode license files
ScanCode 32.0.0 started to prepend its `*.LICENSE` files with
YAML-encoded metadata, see [1]. This is a hot fix to remove this header,
if present, from the license files. A better solution will be
implemented later as part of a larger refactoring of license providers.
Different ScanCode versions also differ in whether license files come
with a final newline or not. Align on not having a final newline to make
tests pass either way.
[1]: aboutcode-org/scancode-toolkit#3100
Signed-off-by: Sebastian Schuberth <[email protected]>
Copy file name to clipboardExpand all lines: plugins/reporters/spdx/src/funTest/assets/spdx-document-reporter-expected-output.spdx.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
"dataLicense" : "CC0-1.0",
12
12
"comment" : "some document comment",
13
13
"hasExtractedLicensingInfos" : [ {
14
-
"extractedText" : "ASMUS License\n\nDisclaimer and legal rights\n---------------------------\n\nThis file contains bugs. All representations to the contrary are void.\n\nSource code in this file and the accompanying headers and included \nfiles may be distributed free of charge by anyone, as long as full \ncredit is given and any and all liabilities are assumed by the \nrecipient.\n",
14
+
"extractedText" : "ASMUS License\n\nDisclaimer and legal rights\n---------------------------\n\nThis file contains bugs. All representations to the contrary are void.\n\nSource code in this file and the accompanying headers and included \nfiles may be distributed free of charge by anyone, as long as full \ncredit is given and any and all liabilities are assumed by the \nrecipient.",
15
15
"licenseId" : "LicenseRef-scancode-asmus"
16
16
}, {
17
17
"extractedText" : "To anyone who acknowledges that the file \"sRGB Color Space Profile.icm\"\nis provided \"AS IS\" WITH NO EXPRESS OR IMPLIED WARRANTY:\npermission to use, copy and distribute this file for any purpose is hereby \ngranted without fee, provided that the file is not changed including the HP \ncopyright notice tag, and that the name of Hewlett-Packard Company not be \nused in advertising or publicity pertaining to distribution of the software \nwithout specific, written prior permission. Hewlett-Packard Company makes \nno representations about the suitability of this software for any purpose.",
0 commit comments