PowerShell / PowerShell/PSScriptAnalyzer
Settings file needs to have a exclude / ignore mechanism
還沒有人認領這個 Issue。
- 主要語言
- C#
- 星號
- 2.2k
- 分支
- 415
- 平均合併
- 13 小時 1 分鐘
- 30 天內合併 PR
- 2
描述
**There needs to be an "exclude" option e.g. "exclude .tests.ps1" **
I have a module with ~ 200 pester tests attached. In VSCode if I attach a settings file the analyzer reports each pester command in each file is not found, by default, in each of the profiles where pester is not present. This reports so many false positives it is impossible to see the things which should be fixed. (VS code just says "> 1000 problems" and stops counting!)
Proposed technical implementation details (optional)
An option in the settings file (and perhaps on the command line) which said "exclude files which match this regular expression" would allow a subfolder, or certain names to be ignored. This is preferable to scanning those files, and trying to figure out which messages to hide, or having a mechanism for saying "Tell me if I'm using a module which isn't in V6 ... except don't tell me about Pester ... unless I've used it outside this folder" .
What is the latest version of PSScriptAnalyzer at the point of writing
1.18.0
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先追蹤 PSScriptAnalyzer 如何讀取設定檔,以及如何處理命令列選項。確定檔案選取發生的位置,以及排除模式如何套用至兩個進入點。完成的標準是使用者可以排除相符的檔案,使其診斷結果不會被回報,包括此處描述的與 Pester 相關的誤報。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- powershell
- 領域
- cli, tooling
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100