-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
scancode license scan produces invalid yaml #3219
Labels
Milestone
Comments
This also happens with the |
AyanSinhaMahapatra
added a commit
that referenced
this issue
Jan 23, 2023
- Add tests verifying JSON and YAML outputs are valid and can be loaded without crashing. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
AyanSinhaMahapatra
added a commit
that referenced
this issue
Apr 4, 2023
License texts were producing invalid YAML files when there were different indentations in the text along with empty newlines, and to make these texts YAML safe we add a single space to empty newlines to license texts with different indentation levels. Reference: #3219 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
See #3220 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
scancode license scan now has license references by default, and as license texts
often has whitespace to the left, this leads to invalid yaml output when
--license
option is used.
How To Reproduce
From scancode latest develop:
This results in:
System configuration
The text was updated successfully, but these errors were encountered: