Skip to content

Commit c80b707

Browse files
Sort and remove duplicates from FilesAnalyzed in main.ps1 for improved data integrity
1 parent f89342c commit c80b707

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/main.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ foreach ($file in $files) {
6767

6868
# 3. Normalize the file paths in FilesAnalyzed
6969
$normalizedFiles = @()
70+
$jsonContent.FilesAnalyzed = $jsonContent.FilesAnalyzed | Sort-Object -Unique
7071
foreach ($fa in $jsonContent.FilesAnalyzed) {
7172
$normalizedFiles += ($fa -Split '999.0.0')[-1].Replace('\', '/').TrimStart('/').TrimEnd('/')
7273
}

0 commit comments

Comments
 (0)