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 analyzers that help prevent developer gotchas #1426

Open
WhitWaldo opened this issue Dec 15, 2024 · 1 comment
Open

Add analyzers that help prevent developer gotchas #1426

WhitWaldo opened this issue Dec 15, 2024 · 1 comment
Labels
area/client help wanted Extra attention is needed kind/enhancement New feature or request
Milestone

Comments

@WhitWaldo
Copy link
Contributor

Describe the feature

This is intended more as a parent issue to track progress for individual analyzers, but the goal is that we reduce some of the opportunities for developers to inadvertently misconfigure things that we might catch at build time and reduce runtime exceptions. Here's a short and evolving list of opportunities here:

  • Actor cross-serialization errors Ensure that when developers retain DataContract serialization or opt into JSON-based serialization, they're not inadvertently cross-serializing in a way that breaks the serializers and deserializers for either approach.
  • Identify workflows and workflow activities that are referenced, but not registered in DI
  • Identify actors that are referenced, but not registered in DI
  • Ensure that during startup, those resources that require a app.UseX() have it specified in Program.cs

Release Note

RELEASE NOTE: ADD Analyzers to help prevent runtime errors

@WhitWaldo WhitWaldo added kind/enhancement New feature or request area/client labels Dec 15, 2024
@WhitWaldo WhitWaldo added this to the v1.16 milestone Dec 15, 2024
@WhitWaldo WhitWaldo added the help wanted Extra attention is needed label Dec 16, 2024
@jev-e
Copy link
Contributor

jev-e commented Dec 31, 2024

I'd be interested in looking at this; although partially motivated by self improvement as my knowledge of Roslyn analysers isn't super strong, but an area I'd like to improve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client help wanted Extra attention is needed kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants