Reference assemblies lack annotations
還沒有人認領這個 Issue。
評估
研究方向
首先檢查推論工具目前如何取得 .NET Core 3.1 參考組件的註解,並以缺少的 System.Linq 註解和 FirstOrDefault 行為作為具體案例。調查是否可以為目標為 .NET Core 3 或 .NET Framework 4.x 的專案包含 .NET 5 註解。當這些註解能正確推論 nullable 集合和傳回值,且不需要抑制編譯器警告時,即視為完成。
由索引模型根據 Issue 內容生成。
描述
Even on .NET Core 3.1, not all system libraries are annotated.
For example, the System.Linq methods are lacking annotations.
This means a call like collection.FirstOrDefault() will:
- incorrectly allow nullable collections
- incorrectly allow the return value to be non-nullable
This can cause significantly wrong annotations being inferred (and then accepted by the compiler without warning).
Maybe we should somehow include the .NET 5 annotations with the inference tool, so that it can produce useful results on projects targeting .NET Core 3 or even .NET Framework 4.x?
- 主要語言
- C#
- 星號
- 38
- 分支
- 6
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
icsharpcode/NullabilityInference 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 35/100
icsharpcode/NullabilityInference#13 · 1 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 42/100
-
難度 5/5 一週以上 新手友好度 15/100
-
難度 5/5 一週以上 新手友好度 25/100
icsharpcode/NullabilityInference#6 · 2 則留言 ·
-
Flow analysis未關閉
難度 5/5 一週以上 新手友好度 32/100
icsharpcode/NullabilityInference#5 · 7 則留言 ·
查看 icsharpcode/NullabilityInference 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 3 天內回覆
-
bug python
難度 1/5 1 小時以內 新手友好度 88/100
ilia-sokolov/OfficeAgent.NET#89 ·
維護者通常 13 天內回覆
-
documentation
難度 2/5 1-3 小時 新手友好度 82/100
juandresrodca/AdminForge#66 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
umbraco/Umbraco.Automate#612 ·
維護者通常 1 天內回覆