Skip to content

Preference Variables MUST be excluded from PSUseDeclaredVarsMoreThanAssigments #457

@Jaykul

Description

@Jaykul

I didn't test other variables, but the $OFS variable is a preference variable, but still triggers the PSUseDeclaredVarsMoreThanAssigments warning incorrectly.

When I set $OFS I do so to affect PowerShell's default string output, I need never "use" the variable myself. Like all other preference variables,OFS should be excluded from this rule -- duh?

PLEASE READ About_Preference_Variables AND EXCLUDE ALL PREFERENCE VARIABLES

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