-
-
Notifications
You must be signed in to change notification settings - Fork 579
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
Fix invalid license yaml files by resolving duplicated keys #2776
Conversation
CC @pombredanne |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this... but I do not understand what is the problem you are trying to fix. Furthermore, why are you removing notes that are likely valuable?
Duplicate key is illegal according to the latest YAML spec. Using other libraries to parse these YAML files, for example, |
FYI. |
Most notes I have removed is EXACTLY duplicted if you take a glance on the context around them, except for And as notes in ecos.yml, it's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fangxlmr re:
Yes, and it can also raise errors when there are duplicates... See IMHO we should also enforce this by using Just curious: how did you find out about these? |
d57d6af
to
0f84816
Compare
Fixes aboutcode-org#2655. Signed-off-by: Fang Xiaoliang <fangxlmr@foxmail.com>
Signed-off-by: Fang Xiaoliang <fangxlmr@foxmail.com>
Signed-off-by: Fang Xiaoliang <fangxlmr@foxmail.com>
Signed-off-by: Fang Xiaoliang <fangxlmr@foxmail.com>
0f84816
to
ae95367
Compare
Sure. During resolving dup fields in license yamls, I also found out this mistake occurs in one rule yaml as well. Not suprised though.
Sharp eyes :P |
@pombredanne Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is clean and clear. Looking great. Thank you ++ 🙇
Merging
Fixes #2655.
Tasks
Run tests locally to check for errors.