Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(reporter): Do not take blank license texts
Recent ScanCode versions started to add a YAML front matter to license files (also see b9c038e). This means that now license files are present even in cases where ScanCode previously had no license text. Such files now only contain the YAML frontmatter, and removing the frontmatter makes them blank. Note that even online files like [1] are blank now. Avoid using such files for license texts by adding a check whether their contents are blank. This fixes an issue with the SPDX reporter which has a check that `extractedText` for a `SpdxExtractedLicenseInfo` must be non-blank. [1]: https://scancode-licensedb.aboutcode.org/generic-cla.LICENSE Signed-off-by: Sebastian Schuberth <[email protected]>
- Loading branch information