PowerShell / PowerShell/PSScriptAnalyzer
Settings file needs to have a exclude / ignore mechanism
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 2.2k
- 派生
- 414
- 平均合并
- 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