Add codemeta generation flag#72
Merged
Anas-Elhounsri merged 3 commits intoSoftwareUnderstanding:mainfrom Apr 20, 2026
Merged
Conversation
Contributor
Author
|
test action did not passed but I am pretty sure this is not due to my changes |
Contributor
Author
|
This PR is linked with sw-metadata-bot issue #93 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
sw-metada-bot may have to ask somef to generate the codemeta.json file.
As this package is using rsmetacheck directly but not somef I preferred adding this flag in your package to expose the "-c codemeta.json" from somef.
This would avoid me having to call somef as a new dependancy and run it again to generate the codemeta.json file.
Changes
I added a
-c/--generate-codemetaflag to generate codemeta.json file when running somef.I added a change in the detect_pitfalls_main to filter out the generated codemeta files.
I added a simple mock unit test to make sure that the rsmetacheck wrapper on somef is correct.