diff --git a/Source/PSQualityCheck/PSQualityCheck.psd1 b/Source/PSQualityCheck/PSQualityCheck.psd1 index a081097..bcba0e6 100644 --- a/Source/PSQualityCheck/PSQualityCheck.psd1 +++ b/Source/PSQualityCheck/PSQualityCheck.psd1 @@ -12,7 +12,7 @@ RootModule = 'PSQualityCheck.psm1' # Version number of this module. - ModuleVersion = '2.0.2' + ModuleVersion = '2.0.3' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/Source/PSQualityCheck/private/GetTagList.ps1 b/Source/PSQualityCheck/private/GetTagList.ps1 index b8ab0ab..69acdfb 100644 --- a/Source/PSQualityCheck/private/GetTagList.ps1 +++ b/Source/PSQualityCheck/private/GetTagList.ps1 @@ -20,47 +20,47 @@ function GetTagList { $modulePath = (Get-Module -Name 'PSQualityCheck').ModuleBase - $checksPath = (Join-Path -Path $modulePath -ChildPath "data") + $checksPath = (Join-Path -Path $modulePath -ChildPath 'data') - Get-Content -Path (Join-Path -Path $checksPath -ChildPath "Module.Tests.ps1") -Raw | ForEach-Object { + Get-Content -Path (Join-Path -Path $checksPath -ChildPath 'Module.Checks.ps1') -Raw | ForEach-Object { $ast = [Management.Automation.Language.Parser]::ParseInput($_, [ref]$null, [ref]$null) $ast.FindAll( { param($node) $node -is [System.Management.Automation.Language.CommandAst] -and - $node.CommandElements[0].Value -eq "Describe" -and + $node.CommandElements[0].Value -eq 'Describe' -and $node.CommandElements[2] -is [System.Management.Automation.Language.CommandParameterAst] -and - $node.CommandElements[2].ParameterName -eq "Tag" + $node.CommandElements[2].ParameterName -eq 'Tag' }, $true) | ForEach-Object { $moduleTags += $_.CommandElements[3].Value } $ast.FindAll( { param($node) $node -is [System.Management.Automation.Language.CommandAst] -and - $node.CommandElements[0].Value -eq "It" -and + $node.CommandElements[0].Value -eq 'It' -and $node.CommandElements[2] -is [System.Management.Automation.Language.CommandParameterAst] -and - $node.CommandElements[2].ParameterName -eq "Tag" + $node.CommandElements[2].ParameterName -eq 'Tag' }, $true) | ForEach-Object { $moduleTags += $_.CommandElements[3].Value } } - Get-Content -Path (Join-Path -Path $checksPath -ChildPath "Script.Tests.ps1") -Raw | ForEach-Object { + Get-Content -Path (Join-Path -Path $checksPath -ChildPath 'Script.Checks.ps1') -Raw | ForEach-Object { $ast = [Management.Automation.Language.Parser]::ParseInput($_, [ref]$null, [ref]$null) $ast.FindAll( { param($node) $node -is [System.Management.Automation.Language.CommandAst] -and - $node.CommandElements[0].Value -eq "Describe" -and + $node.CommandElements[0].Value -eq 'Describe' -and $node.CommandElements[2] -is [System.Management.Automation.Language.CommandParameterAst] -and - $node.CommandElements[2].ParameterName -eq "Tag" + $node.CommandElements[2].ParameterName -eq 'Tag' }, $true) | ForEach-Object { $scriptTags += $_.CommandElements[3].Value } $ast.FindAll( { param($node) $node -is [System.Management.Automation.Language.CommandAst] -and - $node.CommandElements[0].Value -eq "It" -and + $node.CommandElements[0].Value -eq 'It' -and $node.CommandElements[2] -is [System.Management.Automation.Language.CommandParameterAst] -and - $node.CommandElements[2].ParameterName -eq "Tag" + $node.CommandElements[2].ParameterName -eq 'Tag' }, $true) | ForEach-Object { $scriptTags += $_.CommandElements[3].Value }