-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OrtResult: Add a load() function to the companion object
After introducing shared dependency graphs, it must be ensured that the 'scopes' property of projects in the analyzer result has been correctly initialized. OrtResult does this in its getProjects() function, but if this function is called repeatedly, this is inefficient. Therefore provide a new function to load ORT results files that returns an OrtResult with project scopes already resolved. On such an object the getProjects() function is no longer problematic because the dependency graph has already been converted to the scopes structure. Signed-off-by: Oliver Heger <oliver.heger@bosch.io>
- Loading branch information
1 parent
756773a
commit 775aaf5
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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