-
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
Possibility to exclude paths / files within a project from a scan #5018
Comments
To implement this correctly it is required that the exclude configuration is reflected in the stored scan result, to make sure that the returned scan result matches the excludes if they are changed. This might be already solved by the scanner configuration compatibility check in the scan storage, if the excludes are passed as an option to ScanCode, but this needs to be verified. |
Open questions:
Bosch will make a concrete suggestion for an implementation and propose it to the community. |
Enable this by default for performance reasons of showcasing ORT. For simplicity, only use a single parameter for all tools as there is barely a need to configure this flag differently per tool. However, the meaning of this parameter can slightly differ per tool, as not all tools support e.g. path excludes yet, see [1] or also [2] in that context. [1]: #5018 [2]: #3537 Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Enable this by default for performance reasons of showcasing ORT. For simplicity, only use a single parameter for all tools as there is barely a need to configure this flag differently per tool. However, the meaning of this parameter can slightly differ per tool, as not all tools support e.g. path excludes yet, see [1] or also [2] in that context. [1]: #5018 [2]: #3537 Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Enable this by default for performance reasons of showcasing ORT. For simplicity, only use a single parameter for all tools as there is barely a need to configure this flag differently per tool. However, the meaning of this parameter can slightly differ per tool, as not all tools support e.g. path excludes yet, see [1] or also [2] in that context. [1]: #5018 [2]: #3537 Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Scenario:
I do have a repository with some huge files as test resources. Sometimes even binary files.
These result in ScanCode timeouts, when it tries to scans them.
The
--skip-excluded
CLI parameter currently only provides the possibility to excludePackages
and wholeProjects
.See:
ort/scanner/src/main/kotlin/Scanner.kt
Lines 96 to 103 in 14a22cb
Possible solution:
Use the
--ignore
option from ScanCode to ignore the files specified via apathExclude
in.ort.yml
if--skip-excluded
is used for the ORT scanner.For FossID it is already possible to exclude files from the Project: #4976
The text was updated successfully, but these errors were encountered: