Skip to content

Commit 50ea056

Browse files
author
kborle
committed
Adds profile parameter to the cmdlet in library tests
1 parent 25ba9bd commit 50ea056

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Tests/Engine/LibraryUsage.tests.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ function Invoke-ScriptAnalyzer {
3636
[switch] $Recurse,
3737

3838
[Parameter(Mandatory = $false)]
39-
[switch] $SuppressedOnly
39+
[switch] $SuppressedOnly,
40+
41+
[Parameter(Mandatory = $false)]
42+
[string] $Profile = $null
4043
)
4144
[string[]]$customRulePathArr = @($CustomRulePath);
4245
if ($CustomRulePath -eq $null)
@@ -52,7 +55,8 @@ function Invoke-ScriptAnalyzer {
5255
$IncludeRule,
5356
$ExcludeRule,
5457
$Severity,
55-
$SuppressedOnly.IsPresent
58+
$SuppressedOnly.IsPresent,
59+
$Profile
5660
);
5761

5862
if ($PSCmdlet.ParameterSetName -eq "File") {

0 commit comments

Comments
 (0)