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
I have been trying to set RuleSuppressionID in the [Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.DiagnosticRecord]::new() object from a custom Powershell rules. But for some reason that is not working. Not sure if PSSA removes the property before writing it out
I could see that DiagnosticRecord constructor takes value for RuleSuppressionID.
@manigandan-jegannathan-developer Yes, that could be. This reminds of this PR where I had to set the SuggestedCorrections property for custom rules because otherwise it got lost in translation. By looking at the code here it seems to be quite clear that the RuleSuppressionID does not get translated. Since this is an easy one, I opened a PR for this below (also to show you how easy it is to make changes)
I have been trying to set RuleSuppressionID in the [Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.DiagnosticRecord]::new() object from a custom Powershell rules. But for some reason that is not working. Not sure if PSSA removes the property before writing it out
I could see that DiagnosticRecord constructor takes value for RuleSuppressionID.
@bergmeister
The text was updated successfully, but these errors were encountered: