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
Right now the PositionalParameterUsed method in Helper.cs automatically ignores any command that has a parameter set with the name ScriptBlockSet. This is done to ensure that warnings about unnamed positional parameters are not raised for ForEach-Object or Where-Object. This is not a safe way to exclude these cmdlets, because other cmdlets or advanced functions could be created with the same parameter set name (especially if someone uses these as an example to follow). Instead, this should identify the ForEach-Object/Where-Object cmdlets by name.