You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can be worked around by using the .Foreach( {$_} ) construct instead, but it is bad since it breaks scripts by just saving them when auto formatting is enabled.
Hey @kapilmb, here's one more formatting issue we need to look into. Looks like there are two cases where we should be making an exception for the "space before open brace" rule, .Foreach{ and .Where{, both of which have special behavior in PowerShell.
(0 .. 10).Foreach{$_}
is formatted into(0 .. 10).Foreach {$_}
which the compiler will not accept.Same thing with
.Where{}
The text was updated successfully, but these errors were encountered: