PowerShell / PSScriptAnalyzer

Download ScriptAnalyzer from PowerShellGallery
https://www.powershellgallery.com/packages/PSScriptAnalyzer/
MIT License
1.8k stars 366 forks source link

PSReservedParams: Make severity Error instead of Warning #1989

Open liamjpeters opened 3 months ago

liamjpeters commented 3 months ago

PR Summary

PSScriptAnalyzer reports PSReservedParams as warning but according to the documentation it's an error.

This PR makes the rule report as an error and fixes up tests that expect there to be 7 rules with an error severity (this makes it 8).

Resolves #1973

PR Checklist