CommunityToolkit / CommunityToolkit/Windows

Clean up suppression of CA1063 and implement IDisposable correctly

オープン
#84 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
components::animations components::collections components::helpers enhancement
主要言語
C#
スター
1.1k
フォーク
166
PR マージ指標
30日以内にマージされた PR はありません

説明

From https://github.com/CommunityToolkit/Tooling-Windows-Submodule/issues/63

One or more components in this repository are suppressing CA1063. To avoid memory leaks in certain edge cases, we should be implementing the full `IDisposable` pattern and not suppressing this warning.

[Affected components](https://github.com/search?q=repo%3ACommunityToolkit%2FWindows+disable+CA1063&type=code):
- [CameraHelper](https://github.com/CommunityToolkit/Windows/blob/744e6aba53329b3f04980237ca4d19eae3fbd5c9/components/Helpers/src/CameraHelper/CameraHelper.cs#L16)
- [AdvancedCollectionView](https://github.com/CommunityToolkit/Windows/blob/744e6aba53329b3f04980237ca4d19eae3fbd5c9/components/AdvancedCollectionView/src/AdvancedCollectionView.Defer.cs#L24)
- [ExpressionNode](https://github.com/CommunityToolkit/Windows/blob/744e6aba53329b3f04980237ca4d19eae3fbd5c9/components/Animations/src/Expressions/ExpressionNodes/ExpressionNode.cs#L18) (from Animations package)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Inspect CameraHelper.cs, AdvancedCollectionView.Defer.cs, and ExpressionNode.cs at the linked locations, then trace how each component owns disposable resources. Verify the CA1063 suppressions and existing disposal behavior first; done means the affected components implement the full IDisposable pattern without suppressing CA1063.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
tooling
issue の種類
リファクタリング
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。