Skip to content

Should SuppressAzurePowerShellBreakingChangeWarnings throw UseDeclaredVarsMoreThanAssignments by default? #1579

Open
@asears

Description

@asears

Summary of the new feature

Currently $SuppressAzurePowerShellBreakingChangeWarnings variable warns with UseDeclaredVarsMoreThanAssignments however $WhatIfPreference does not.

Should this be added to default list of ignore rules or too specific to Az Powershell cmdlets?

https://github.com/Azure/azure-powershell/blob/master/documentation/breaking-changes/breaking-changes-messages-help.md

https://github.com/Azure/azure-powershell/blob/preview/documentation/breaking-changes/breaking-changes-definition.md

Proposed technical implementation details (optional)

Add this to list of default exceptions for UseDeclaredVarsMoreThanAssignments rule in Engine/SpecialVars.cs.

What is the latest version of PSScriptAnalyzer at the point of writing

v1.19.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions