Rule for unused rule suppressions
還沒有人認領這個 Issue。
評估
研究方向
未指定檔案、測試或進入點。先找出 Diagnostics.CodeAnalysis.SuppressMessageAttribute 和分析器診斷的處理方式,然後定義如何針對列出的情境偵測並報告已過時的抑制。
由索引模型根據 Issue 內容生成。
描述
Currently there are quiet some reason to suppress a certain rule as e.g.:
- Not be able to (easily) work around an issue
- False positives
There are also a few reasons a rule suppression might get obsolete, e.g.:
- The script issue gets resolved
e.g. all theWrite-Hostcmdlet are been replaced which a different cmdlet - The script issue doesn't anymore apply
e.g. aPSReviewUnusedParameterparameter get completely depreciated or a variable gets (also) used in scope - PSScriptAnalyzer update
e.g. a false positive might get fixed in a newer version of PSScriptAnalyzer
In all the situations I would like to be warned that there is a Diagnostics.CodeAnalysis.SuppressMessageAttribute that is no longer required.
This will avoid a scenario were:
- Someone resolves an analyzer issue (e.g.
PSAvoidUsingWriteHost) in a particular script but forgets to remove theSuppressMessageAttributefrom the annotations - Someone else updates the same script but unseen reintroduces the analyzer issue (e.g.
Write-Host) again.
- 主要語言
- C#
- 星號
- 2.2k
- 分支
- 416
- 平均合併
- 13 小時 1 分鐘
- 30 天內合併 PR
- 2
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
PowerShell/PSScriptAnalyzer 的其他 Issue
-
Up-for-Grabs
難度 1/5 1-3 小時 新手友好度 78/100
PowerShell/PSScriptAnalyzer#2213 · 2 則留言 ·
-
難度 3/5 1-2 天 新手友好度 48/100
PowerShell/PSScriptAnalyzer#2220 ·
-
難度 3/5 1-2 天 新手友好度 55/100
PowerShell/PSScriptAnalyzer#2219 ·
-
難度 3/5 1-2 天 新手友好度 72/100
PowerShell/PSScriptAnalyzer#2218 ·
-
難度 3/5 1-2 天 新手友好度 72/100
PowerShell/PSScriptAnalyzer#2217 · 1 則留言 ·
查看 PowerShell/PSScriptAnalyzer 的全部 Issue
相似的 Issue
-
area/navigationview 🧭 difficulty/starter 🚀 good first issue kind/bug platform/all project/navigation-lifecycle 🧬 triage/untriaged
難度 2/5 1-3 小時 新手友好度 76/100
unoplatform/uno#24925 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
DamianEdwards/ghcp-spend-tray#39 ·
維護者通常 1 天內回覆
-
copilot documentation
難度 1/5 1-3 小時 新手友好度 88/100
維護者通常 2 天內回覆
-
[Rust][Flaky Test] multiple_deadlines_fire_in_order asserts a wall-clock gap instead of firing order未關閉CI/CD ⚒️ Flaky-tests 🐦
難度 2/5 1-3 小時 新手友好度 88/100
valkey-io/valkey-glide#7255 ·
維護者通常 3 天內回覆
-
bug good first issue
難度 1/5 1 小時以內 新手友好度 92/100
unoplatform/Uno.Core#99 ·