Fix severities#448
Conversation
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit e38c89e: ✅ Validation status: passed
For more details, please refer to the build report. |
There was a problem hiding this comment.
Pull request overview
Updates PSScriptAnalyzer rule documentation to correct reported severity levels so the rule pages and the consolidated rules list reflect the intended severities.
Changes:
- Adjusts the documented severity for
UseCompatibleSyntax(Warning → Error). - Adjusts the documented severity for
ReservedCmdletChar(Error → Warning). - Adjusts the documented severity for
PossibleIncorrectUsageOfRedirectionOperator(Information → Warning) and updates itsms.date.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| reference/docs-conceptual/PSScriptAnalyzer/Rules/UseCompatibleSyntax.md | Updates the rule page severity to Error. |
| reference/docs-conceptual/PSScriptAnalyzer/Rules/ReservedCmdletChar.md | Updates the rule page severity to Warning. |
| reference/docs-conceptual/PSScriptAnalyzer/Rules/README.md | Updates the consolidated rules table severities to match rule pages. |
| reference/docs-conceptual/PSScriptAnalyzer/Rules/PossibleIncorrectUsageOfRedirectionOperator.md | Updates the rule page severity to Warning and refreshes ms.date. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # UseCompatibleSyntax | ||
|
|
||
| **Severity Level: Warning** | ||
| **Severity Level: Error** |
| # ReservedCmdletChar | ||
|
|
||
| **Severity Level: Error** | ||
| **Severity Level: Warning** |
| | [PossibleIncorrectComparisonWithNull][44] | Warning | Always enabled | | | ||
| | [PossibleIncorrectUsageOfAssignmentOperator][45] | Information | Always enabled | | | ||
| | [PossibleIncorrectUsageOfRedirectionOperator][46] | Information | Always enabled | | | ||
| | [PossibleIncorrectUsageOfRedirectionOperator][46] | Warning | Always enabled | | |
PR Summary
Fix severities
PR Checklist