Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions eng/skill-coverage/Measure-SkillCoverage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function Get-CodePatterns([string]$content) {
if ($inCode) { $block += "$line`n" }
}

$seen.Values | ForEach-Object {
$seen.get_Values() | ForEach-Object {
[PSCustomObject]@{
Category = 'CodePattern'
Description = $_[0]
Expand Down Expand Up @@ -257,7 +257,7 @@ function Get-BlockPatterns([string]$code) {
if ($code -match $_.Value) { $found[$_.Key.ToLower()] = $_.Key }
}

$found.Values
$found.get_Values()
}

function Get-SignificantTerms([string]$text) {
Expand All @@ -283,7 +283,10 @@ function Get-SignificantTerms([string]$text) {
}
}

[string[]]$terms.Keys
# Use get_Keys() rather than .Keys: if a significant term is literally
# "keys", PowerShell's hashtable member access returns that entry's value
# instead of the key collection, collapsing the keyword set.
[string[]]$terms.get_Keys()
}

# ═══════════════════════════════════════════════════════════
Expand Down