-
Notifications
You must be signed in to change notification settings - Fork 314
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
Snippet Choice #8257
Snippet Choice #8257
Conversation
0e0d89b
to
1929262
Compare
According to @mnonnenmacher , this is normal the markdown-links test is failing as the link is pointing to a file that is added in current PR, and not present in |
ff6b70e
to
3d163d9
Compare
@@ -0,0 +1,187 @@ | |||
The snippets are short pieces of code coming from difference public sources such as GitHub, GitLab, Stackoverflow, ... | |||
|
|||
Some product such as ScanOSS and FossID scrape those public sources and build a Knowledge Base of snippets, classifying |
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.
"Some product such as" -> "So-called snippet scanners like"
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.
I wouldn't capitalize "Knowledge Base" or "Author, Version and License" in the next sentence.
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.
Note: I'm pausing review here.
5ef4693
to
a92b14b
Compare
a92b14b
to
bfb6cbc
Compare
/** | ||
* The URL of the [RepositoryProvenance] the snippet choice applies to. | ||
*/ | ||
data class Provenance(val url: String) |
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.
Can you give this class another name to avoid a name conflict if some code has to use this and the other Provenance
class? I don't have a good idea, maybe TargetProvenance
?
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.
Or also move to a snippet
sub-package to disambiguate the FQN?
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.
@sschuberth Did you mean to only move or to rename and move? I guess I can live with only moving it like it was done now.
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.
I was meaning to only move.
bfb6cbc
to
d909214
Compare
@sschuberth LGTM, do you want to have another look? |
I won't have the time to finish the docs revewi soon.
I guess I would probably still have plenty of wording-nits for |
I think the docs don't have to be perfect from the beginning, we can still improve it later. |
@nnobelis The funTest error is not related to your change, but for the test job you have to fix the |
Signed-off-by: Nicolas Nobelis <[email protected]>
By adding the snippet choices configuration to the scanner context, the snippet scanner implementations such as ScanOSS and FossID can be extended to take into account this configuration. This will be done in a future commit. Signed-off-by: Nicolas Nobelis <[email protected]>
d909214
to
a84d484
Compare
4e0b6a1
into
oss-review-toolkit:main
I now realized |
This pull request introduces the Snippet Choice feature to ORT.
Please have a look at the documentation in
website/docs/configuration/snippet-choice.md
.