forked from ossf/scorecard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Avoid reading every file searching for sonar configs (ossf#3929)
* use reader instead of contents if the filename doesn't match we don't use the file content. Signed-off-by: Spencer Schrock <[email protected]> * compare bytes to avoid allocations we don't save the line, just the offset. using the bytes versions avoids allocating new strings Signed-off-by: Spencer Schrock <[email protected]> --------- Signed-off-by: Spencer Schrock <[email protected]>
- Loading branch information
1 parent
8f67887
commit 7933c20
Showing
1 changed file
with
12 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