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/
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/