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/

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions