This repository has been archived by the owner on Feb 24, 2021. It is now read-only.
Add PSSA test for [CmdletBinding()] attribute on every Function. #305
Labels
enhancement
The issue is an enhancement request.
help wanted
The issue is up for grabs for anyone in the community.
Details of the problem, bug, or enhancement
Avoid Redefining Reserved Parameters
Reserved Parameters such as Verbose, Debug, etc. are already added to the function at runtime so don't redefine them. Add the CmdletBinding attribute to include the reserved parameters in your function.
Use the CmdletBinding Attribute on Every Function
The CmdletBinding attribute adds the reserved parameters to your function which is always preferable.
https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md#use-the-cmdletbinding-attribute-on-every-function
The text was updated successfully, but these errors were encountered: