PowerShell / PowerShell/PSScriptAnalyzer
Improved rule suppression
未关闭
还没有人认领这个 Issue。
Consider - 2.0
- 主要语言
- C#
- 星标
- 2.2k
- 派生
- 414
- 平均合并
- 13 小时 1 分钟
- 30 天内合并 PR
- 2
描述
PSSA2 should allow the suppression of rules:
- Current suppression attributes should be supported
- Comment-based suppression should also be supported and work based on token reading
- Ideally suppression should occur before rules create or emit a record to minimise overhead. This is most like easiest by making diagnostic emission use a method that can filter out diagnostics
- In particular, it may be useful to pre-process input and find excluded extents rather than each rule performing the same suppression discovery over and over
Another suppression scenario is being able to suppress groups of rules (possibly wildcarded) over a list of files (also possibly wildcarded).
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查现有的抑制属性、注释和令牌读取行为,以及 issue 中描述的诊断发出路径。定义规则抑制和带通配符的文件组抑制应如何工作,然后验证诊断是否在发出前进行过滤,并且列出的所有抑制场景都已覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, powershell
- 领域
- devtools, tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100