PowerShell / PowerShell/PSScriptAnalyzer
possible bug with PSUseBOMForUnicodeEncodedFile
未關閉
還沒有人認領這個 Issue。
Area - Rules
- 主要語言
- C#
- 星號
- 2.2k
- 分支
- 414
- 平均合併
- 13 小時 1 分鐘
- 30 天內合併 PR
- 2
描述
Second version of this causes BOM to be considered missing, No failed test after deleting trailing whitespaces after Property. Not sure if false positive or personal mistake, worked fine with and without -Typename as well.
$MovedUser = New-Object PSObject -Property @{...}
$MovedUser = New-Object -TypeName PSObject –Property @{...}
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
使用兩個 New-Object 程式碼片段重現 PSUseBOMForUnicodeEncodedFile 的行為,分別測試有和沒有 -TypeName 的情況,並在移除尾隨空白後再次測試。判斷 BOM 警告是誤報還是使用錯誤,然後記錄一個已確認會失敗的案例及其預期結果。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- powershell
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100