Skip to content

Commit 53bc3ff

Browse files
author
Quoc Truong
committed
Fix merged conflict that caused test failures
1 parent 84079a9 commit 53bc3ff

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

Tests/Engine/LibraryUsage.tests.ps1

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,22 @@ function Invoke-ScriptAnalyzer {
3636
[switch] $Recurse,
3737

3838
[Parameter(Mandatory = $false)]
39-
<<<<<<< Updated upstream
4039
[switch] $IncludeDefaultRules,
4140

4241
[Parameter(Mandatory = $false)]
43-
[switch] $SuppressedOnly,
44-
45-
[Parameter(Mandatory = $false)]
46-
[string] $Profile = $null
42+
[switch] $SuppressedOnly
4743
)
4844

4945
if ($null -eq $CustomRulePath)
5046
{
5147
$IncludeDefaultRules = $true
5248
}
53-
=======
54-
[switch] $SuppressedOnly
55-
)
5649
# There is an inconsistency between this implementation and c# implementation of the cmdlet.
5750
# The CustomRulePath parameter here is of "string[]" type whereas in the c# implementation it is of "string" type.
5851
# If we set the CustomRulePath parameter here to "string[]", then the library usage test fails when run as an administrator.
5952
# We want to note that the library usage test doesn't fail when run as a non-admin user.
6053
# The following is the error statement when the test runs as an administrator.
6154
# Assert failed on "Initialize" with "7" argument(s): "Test failed due to terminating error: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)"
62-
>>>>>>> Stashed changes
6355

6456
$scriptAnalyzer = New-Object "Microsoft.Windows.PowerShell.ScriptAnalyzer.ScriptAnalyzer";
6557
$scriptAnalyzer.Initialize(
@@ -69,13 +61,8 @@ function Invoke-ScriptAnalyzer {
6961
$IncludeRule,
7062
$ExcludeRule,
7163
$Severity,
72-
<<<<<<< Updated upstream
7364
$IncludeDefaultRules.IsPresent,
74-
$SuppressedOnly.IsPresent,
75-
$Profile
76-
=======
7765
$SuppressedOnly.IsPresent
78-
>>>>>>> Stashed changes
7966
);
8067

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

0 commit comments

Comments
 (0)