GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — Add missing Severity entry for `Invoke-ScriptAnalyzer` docs by liamjpeters · Pull Request #2193 · PowerShell/PSScriptAnalyzer Conversation
|
| /// <summary> | |
| /// IncludeRule: Array of the severity types to be enabled. | |
| /// </summary> | |
| [ValidateSet("Warning", "Error", "Information", "ParseError", IgnoreCase = true)] | |
| [Parameter(Mandatory = false)] | |
| [SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")] | |
| public string[] Severity | |
| { | |
| get { return severity; } | |
| set { severity = value; } | |
| } | |
| private string[] severity; |
The docs are missing ParseError as an allowed value.
Fixes #2192
Does not conflict with #2190
.cs, .ps1 and .psm1 files have the correct copyright headerWIP: to the beginning of the title and remove the prefix when the PR is ready.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Updates the Invoke-ScriptAnalyzer cmdlet documentation to match the actual allowed -Severity values implemented in InvokeScriptAnalyzerCommand (including ParseError).
Changes:
ParseError to the documented valid values for -Severity.Information).💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Test failures are unrelated to this. They're the Windows test picking up Pester v6. Addressed that in #2194 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks
Sorry, something went wrong.
There was an error while loading. Please reload this page.
57431f8
into
PowerShell:main
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Invoke-ScriptAnalyzer does not report a parse failure in a param() block caused by a missing parameter separator comma.
There was an error while loading. Please reload this page.