PowerShell / PowerShell/PSScriptAnalyzer
Rule Idea: Wait-Debugger Warning
未關閉
還沒有人認領這個 Issue。
Area - Rules
Issue - New Rule
Up-for-Grabs
- 主要語言
- C#
- 星號
- 2.2k
- 分支
- 414
- 平均合併
- 13 小時 1 分鐘
- 30 天內合併 PR
- 2
描述
Summary of the new feature
Rule that warns if Wait-Debugger is present in a script and that it will cause a "hard stop" of the script. This would provide a safety gate especially for new users as well as a vscode warning if it is still present, if they put it in their code temporarily for troubleshooting and forgot to remove it after.
Proposed technical implementation details (optional)
Pretty simple, just do an AST search for wait-debugger
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
該 issue 沒有指出任何檔案或測試。首先定位 PSScriptAnalyzer 基於 AST 的規則進入點和現有規則測試,然後確認 Wait-Debugger 是如何表示的;完成的標準是有一條規則會警告其強制停止行為,並支援所描述的 VS Code 警告使用情境。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp, powershell
- 領域
- tooling
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100