Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Add PSSA test for [CmdletBinding()] attribute on every Function. #305

Open

Description

@cnorthe

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

Activity

  1. stale commented on Nov 24, 2018

    @stale

    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.

  2. added
    staleThe issue or pull request was marked as stale because there hasn't been activity from the community.
    on Nov 24, 2018
  3. johlju commented on Dec 7, 2018

    @johlju
    Contributor

    I'm all for this. Daniel Scott-Raynsford (@PlagueHO) can you please label this issue as enhancement so it is not labeled as stale?

  4. removed
    staleThe issue or pull request was marked as stale because there hasn't been activity from the community.
    on Dec 7, 2018
  5. PlagueHO commented on Dec 7, 2018

    @PlagueHO
    Contributor

    Missed this sorry! Johan Ljunggren (@johlju) - done! We need to get your maintainer privileges back in here!

  6. johlju commented on Dec 8, 2018

    @johlju
    Contributor

    Daniel Scott-Raynsford (@PlagueHO) I will request that from Katie, as soon as I have cached up with the back log of mentions and reviews etc. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue is an enhancement request.help wantedThe issue is up for grabs for anyone in the community.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions