-
Notifications
You must be signed in to change notification settings - Fork 339
Review skipExcludes Analyzer option #10292
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
Comments
In particular, this logic should be reviewed: ort/analyzer/src/main/kotlin/PackageManager.kt Lines 194 to 201 in bca9510
|
To me, this reads as if this option works very different compared to options of the same name in other tools, e.g. Instead of configuring whether analysis should be skipped, it configures whether excludes defined in the |
From my understanding, the feature works in this way:
I assume, this is actually what this feature is supposed to do, right? |
I think the behavior is indeed correct, but the naming / docs are partly misleading. For example the comment at ort/model/src/main/kotlin/config/RepositoryConfiguration.kt Lines 41 to 46 in c07420d
says "Note that excluded parts will still be analyzed" which is not true e.g. for path excludes and In general, path and scope excludes are handled quite differently, so that I'm thinking about having dedicated classes for each, actually. Path excludes are handled globally by ort/analyzer/src/main/kotlin/PackageManager.kt Lines 108 to 111 in bca9510
whereas scope excludes are sometimes handled directly in the package manager implementation, but are also handled by some (?) |
Uh oh!
There was an error while loading. Please reload this page.
In the ORT community meeting of May 8th, 2025 there was some confusion of how skipExcludes works for the Analyzer as a question to 13960e9 / PR #10212. Propose we review the code in question and as needed make it clearer with code comments how the code works and improve user document to state for which package managers this Analyzer option is supported.
The text was updated successfully, but these errors were encountered: