Skip to content

Commit

Permalink
Merge pull request #32 from andrewrdavidson/release-2.0.3
Browse files Browse the repository at this point in the history
Release 2.0.3
  • Loading branch information
andrewrdavidson authored Jan 18, 2024
2 parents 2ee5611 + d4afcb5 commit 9f248fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Source/PSQualityCheck/PSQualityCheck.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'PSQualityCheck.psm1'

# Version number of this module.
ModuleVersion = '2.0.2'
ModuleVersion = '2.0.3'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
22 changes: 11 additions & 11 deletions Source/PSQualityCheck/private/GetTagList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9f248fd

Please sign in to comment.