DscResource.Tests
DscResource.Tests copied to clipboard
Add PSSA test for [CmdletBinding()] attribute on every Function.
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
This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close.
I'm all for this. @PlagueHO can you please label this issue as enhancement so it is not labeled as stale?
Missed this sorry! @johlju - done! We need to get your maintainer privileges back in here!
@PlagueHO I will request that from Katie, as soon as I have cached up with the back log of mentions and reviews etc. :)