You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# DiagnosticRecord should have four properties: Message, Extent, RuleName and Severity$result= [Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.DiagnosticRecord[]]@{
"Message"="This is a sample rule""Extent"=$ast.Extent"RuleName"=$PSCmdlet.MyInvocation.InvocationName"Severity"="Warning"
}
It is possible to assign the suggestedCorrections property in a script, but the C# code do not assign this property.