Skip to content

Rule: Assign attributes to a var instead of referencing them in loops #7

Description

@clcaldwell

Add a rule to check for attribute references of an object called inside of a loop.

Suggest to declare that atrribute into var outside of the loop and reference the var instead of the attribute.

reference: https://dougfinke.com/make-your-powershell-for-loops-4x-faster/

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions