Documentation Index
Fetch the complete documentation index at: https://tally.wharflab.com/llms.txt
Use this file to discover all available pages before exploring further.
powershell/PSUseSupportsShouldProcess is a PSScriptAnalyzer diagnostic emitted by tally for PowerShell snippets embedded in Dockerfiles.
| Property | Value |
|---|---|
| Severity | Warning |
| Category | PSScriptAnalyzer |
| Auto-fix | No |
Description
This rule discourages manual declaration ofWhatIf and Confirm parameters in a function/cmdlet.
These parameters are, however, provided automatically when a function declares a CmdletBinding
attribute with SupportsShouldProcess as its named argument. Using SupportsShouldProcess not only
provides these parameters but also some generic functionality that allows the function/cmdlet
authors to provide the desired interactive experience while using the cmdlet.