iRon7

Results 89 issues of iRon7

### What is the issue? In my use case it actually concerns the `using module ...` statement but the general issue might be simply reproduced with any using statement as...

The `New-Object` cmdlet is basically* [legacy](https://learn.microsoft.com/powershell/scripting/learn/deep-dives/everything-about-pscustomobject?view=powershell-7.4#legacy-approach). Since PowerShell V3.0 (12 years ago), PowerShell supports type accelerators which perform much better, see: [PowerShell scripting performance considerations / object creation](https://learn.microsoft.com/powershell/scripting/dev-cross-plat/performance/script-authoring-considerations?view=powershell-7.4#object-creation). *) Exceptions...

Up for Grabs

According the document [about Reserved Words](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_reserved_words), *the reserved words that cannot be used as identifiers because they have a special meaning in PowerShell*: --- # about_Reserved_Words ## Short description Lists...

There is a rule for **The Try statement is missing its Catch or Finally block.**: ```PowerShell Invoke-ScriptAnalyzer -ScriptDefinition {function Test { Try { write-verbose 'Test' } }}.ToString() ParserError: Line |...

Apparently the default encoding `-Encoding Default` is removed from the cmdlet documentation that supports the `-Encoding` parameter. See e.g.: * https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-content?view=powershell-5.1 * https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-content?view=powershell-7.5 Which makes sense in a way that...

Up for Grabs

It might be helpful that in the case a rule only applies to a specific (minimum) PowerShell versions as for e.g.: * [`AvoidUsingWMICmdlet`](https://learn.microsoft.com/powershell/utility-modules/psscriptanalyzer/rules/avoidusingwmicmdlet) And new request/issues: * [`UseCompatibleStrings`](https://github.com/PowerShell/PSScriptAnalyzer/issues/2015) * [`UseCompatibleSyntax`](https://github.com/PowerShell/PSScriptAnalyzer/issues/2041)...

### Summary of the new feature / enhancement At first I saw [the (labeled) break definition](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_break#using-a-labeled-break-in-a-loop): > PowerShell does not limit how far labels can resume execution. The label can...

Issue-Enhancement
WG-Engine
Needs-Triage

### Summary of the new feature / enhancement (if I am right in my thoughts, this will probably end up as a document issue) For the same reasons the freedom...

Issue-Enhancement
Needs-Triage

Steps to reproduce ------------------ Insert the following commands ```powershell $a = @{Key = "Test"} $a.Parent = $a $a | ConvertTo-Xml -As String ``` Expected behavior ----------------- I would expect an...

Issue-Bug
Breaking-Change
Committee-Reviewed
WG-Cmdlets-Utility
KeepOpen

### Checklist - [x] Issue has a meaningful title - [x] I have searched the existing issues. See [all issues](https://github.com/pester/Pester/issues?q=is%3Aissue) - [x] I have tested using the latest version of...