-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(model): Handle excluded affected paths in
OrtResult.getIssues()
A while ago, `Issue.affectedPath` has been introduced for issues which are limited to a specific file. The goal was to filter out irrelevant scan issues, in particular scan timeout errors for particular file which is either outside of the VCS path, or matched by a path exclude. So, in addition to filtering the issues against the VCS path [1], also filter the issues against the path excludes. So, scan timeout errors can now be fixed via a path exclude. However, the effect of this change is for now limited to the evaluated model's statistics and not yet visible in the WebApp / static HTML report. This will be implemented in following changes. Note: `Issue.affectedPath` is currently only set for scan timeout error, which is why only the scan issues are considered in the added logic. Also, the result is kept on a map, because matching all path excludes is relatively costly and faster to do only once. [1]: 5839604 Signed-off-by: Frank Viernau <[email protected]>
- Loading branch information
Showing
5 changed files
with
106 additions
and
7 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
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
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