Repository navigation
feat(rules): add PowerShell review support - #970
Conversation
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 3 selected item(s). |
wu21-web
left a comment
There was a problem hiding this comment.
Site documentation updates missing, update at pages/src/content/docs/<locale>/review-rules.md.
| "**/test/**/*.lhs", | ||
| "**/*Spec.lhs", | ||
| "**/tests/**/*.nim", | ||
| "**/*.Tests.ps1", |
There was a problem hiding this comment.
Why is this in the default_exclude_patterns.json?
| "**/*.Tests.ps1", |
There was a problem hiding this comment.
sorry,Pester tests normally use *.Tests.ps1, so I added it to match the existing test-file exclusions. But this conflicts with the Pester checks in the PowerShell rule. I'll remove it.
|
@xwil1 Rebase and sync Korean translations. |
8a14a8c to
a244992
Compare
ok |
|
@xwil1 Thanks for your submission! Here are some tasks
This looks high quality overall. I am happy to tell that language PRs are being pushed forward. |
a244992 to
e4bcae3
Compare
ok |
Summary
.psm1and.psd1to the existing PowerShell.ps1allowlist support.*.Tests.ps1files remain reviewable; generic fixture exclusions still apply.Why
PowerShell scripts otherwise use the generic review rule, while standard module and manifest formats are not admitted for review. The dedicated rule focuses on command construction, error handling, pipeline output, credentials, remoting, module contracts, and version/platform compatibility.
The rule distinguishes native exit-code handling policies, recognizes PowerShell 7.3+ cleanup and argument-passing behavior, and accounts for PowerShell 7.5 array-addition improvements. It also avoids treating legitimate SecureString conversions or restricted manifest expressions as defects, and clarifies that TestDrive is not a general sandbox.
Validation
mainat8eb8334, preserving upstream language mappings and all five documentation tables.make check(license, source language, formatting, module consistency, and vet).make test, including the full race-enabled suite.make coverage: 91.5%, above the 90% threshold.git diff --check.Closes #969