Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a code analyzer to enforce a safer implementation of the resolver Func in ITypeDataObject APIs #12609

Open
Tanya-Solyanik opened this issue Dec 9, 2024 · 0 comments
Assignees
Labels
area-Analyzers/CodeFixes A Roslyn Analyzer is either needed for the context, needs to be scope extended or fixed.

Comments

@Tanya-Solyanik
Copy link
Member

1 Warn users against calling Type.GetType from the resolver Func<TypeName, Type> or resolver interface methods.
2. Suggest having a hardcoded set of allowed types to avoid assembly loading and to root types to support trimming in the future

@Tanya-Solyanik Tanya-Solyanik self-assigned this Dec 9, 2024
@KlausLoeffelmann KlausLoeffelmann added area-Analyzers/CodeFixes A Roslyn Analyzer is either needed for the context, needs to be scope extended or fixed. and removed area: Analyzers and Fixers labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Analyzers/CodeFixes A Roslyn Analyzer is either needed for the context, needs to be scope extended or fixed.
Projects
None yet
Development

No branches or pull requests

2 participants