Open
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Reviewed by Cursor Bugbot for commit 2c2e234. Configure here.
| # Uncomment the following line if you only want Errors and Warnings but | ||
| # not Information diagnostic records. | ||
| Severity = @('Error', 'Warning') | ||
| Severity = @( 'Error', 'Warning', 'Information', 'Verbose', 'Debug' ) |
There was a problem hiding this comment.
Invalid PSScriptAnalyzer severity values Verbose and Debug
High Severity
The Severity array now includes 'Verbose' and 'Debug', which are not valid PSScriptAnalyzer severity levels. The only accepted values are 'Error', 'Warning', 'Information', and 'ParseError'. Including invalid values may cause Invoke-ScriptAnalyzer to throw a validation error at runtime, breaking the test suite, or they may be silently ignored — either way the configuration is incorrect.
Reviewed by Cursor Bugbot for commit 2c2e234. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Issues
What does this solve?
Is there anything particularly tricky?
N/A
How should this be tested?
The actual fixes in the module will be completed in a different card
Screenshots
Note
Medium Risk
Moderate risk because it changes static-analysis coverage by skipping the PSScriptAnalyzer test context and altering which diagnostics/rules are emitted, which can affect CI signal and code quality gating.
Overview
Updates the PSScriptAnalyzer module-validation suite to analyze from a different root directory (two levels above the test folder) and cleans up the test script’s style/PowerShell casing.
Adjusts
PSScriptAnalyzerSettings.psd1to emit all severities (includingInformation/Verbose/Debug) and changes the excluded rule set (notably dropping exclusions forPSUseShouldProcessForStateChangingFunctionsandPSAvoidUsingWMICmdlet). ThePSScriptAnalyzer Testscontext is now marked-Skip, disabling these checks in the test run.Reviewed by Cursor Bugbot for commit 59b348f. Bugbot is set up for automated code reviews on this repo. Configure here.