Skip to content

Commit b2779f9

Browse files
authored
Move guardian suppressions to code instead of .gdnsuppress (dotnet#56911)
This allows us to remove duplication of the suppressions in the VMR.
1 parent f926c76 commit b2779f9

File tree

3 files changed

+10
-62
lines changed

3 files changed

+10
-62
lines changed

.config/guardian/.gdnbaselines

-60
This file was deleted.

src/DataProtection/CreateTestCert.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# Obviously, don't actually use this to produce production certs
44
#
55

6+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
7+
'PSAvoidUsingConvertToSecureStringWithPlainText',
8+
'',
9+
Justification='this is creating a certificate for local testing')]
610
param(
711
[Parameter(Mandatory = $true)]
812
$OutFile

src/Hosting/Server.IntegrationTesting/src/Deployers/RemoteWindowsDeployer/RemotePSSessionHelper.ps1

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
[CmdletBinding()]
1+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
2+
'PSAvoidUsingConvertToSecureStringWithPlainText',
3+
'',
4+
Justification='$accountPassword is a script parameter so it needs to be plain-text')]
5+
[CmdletBinding()]
26
param(
37
[Parameter(Mandatory=$true)]
48
[string]$serverName,
@@ -64,4 +68,4 @@ if($remoteResult.Length > 0)
6468
{
6569
$finalExitCode=$remoteResult[$remoteResult.Length-1]
6670
exit $finalExitCode
67-
}
71+
}

0 commit comments

Comments
 (0)