Skip to content

Missing Documentation about Rules #155

Closed
@TBobsin

Description

@TBobsin

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new Get-Foo cmdlet" instead of "New cmdlet."

Module

PSScriptAnalyzer

Summary

Missing Description of PSUseDeclaredVarsMoreThanAssignments rules in PSScriptAnalyzerSettings.ps1.

I have tried to exclude one VarName from being marked.

Details

You could define Settings in PSScriptAnalyzerSettings.ps1

i tried to set an rule to exclude one Var but mark all other Var
but that is not working. And i found no description about PSUseDeclaredVarsMoreThanAssignments
This is what i have tried:

Rules = @{
    PSUseDeclaredVarsMoreThanAssignments = @(
        Whitelist = @('CMK_VERSION')
    )
}

Content Type

How-to

Proposed Title

PSUseDeclaredVarsMoreThanAssignments Rules

Related Articles

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue-doc-ideaIssue - request for new contentneeds-triageWaiting - Needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions