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
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess")] # Because PSSCriptAnalyzer can't see Set-Content...
[CmdletBinding(SupportsShouldProcess)]
It's not uncommon to have a function that doesn't make use of
ShouldProcess
itself, but calls child functions that do. Here's an example:UseShouldProcessCorrectly
triggers in these scenarios, but arguably shouldn't since it runs as expected.(It's quite possible that I've missed a standard convention here that makes this issue irrelevant, so feel free to correct me if that's the case)
The text was updated successfully, but these errors were encountered: