Add tests for validate script & validate pattern attributes E.g.: ```powershell function Test-ValidatePattern { [CmdletBinding()] param ( [string] $Path ) $ast = [System.Management.Automation.Language.Parser]::ParseInput((Get-Content $Path -Raw), [ref]$null, [ref]$null) $attributes = $ast.FindAll( { if ($args[0] -isnot [System.Management.Automation.Language.AttributeAst]) { return } if ('ValidatePattern' -ne $args[0].TypeName.Name) { return } $true }, $true) foreach ($attribute in $attributes) { Write-PSFMessage -Message "Processing {0}" -StringValues $attribute -Target $attribute try { $null = "" -match $attribute.PositionalArguments[0].Value } catch { [PSCustomObject]@{ Text = $attribute.Extent.ToString() Item = $attribute Line = $attribute.Extent.StartLineNumber } } } } ```
Activity