-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[Codefixer] Recommend using TypedResults
over using Results
#45217
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
Comments
Cleaning things out and moving this to the backlog. I think this should be done in two parts: an analyzer to recommend Paging resident analyzer guru @david-acker for any interest/time in doing this. |
@captainsafia I'd be happy to pick this up when I have some free time! |
I've come across this issue while searching for whether an analyzer exists for it. Below, "part 1" and "part 2" refer to parts as suggested by @captainsafia. Here's my thinking, which I think is very close to part 2: I would like to analyze The reason I would like to implement part 2 is that my use case is that I want to prevent returning If I start with part 1, that is not sufficient to reach my goal - when If I start with part 2 though, it will implicitly take care of the first part as well: since Time permitting, I may opt for implementing both parts, but part 2 is the one I need. Since it's not tagged with Please note I currently do not intend to provide a code fix for it, just the analyzer. |
Background and Motivation
TypedResults
instead ofResults
Results<>
return type to your classBecomes
And further becomes:
Proposed Analyzer
Analyzer Behavior and Message
Category
Severity Level
Usage Scenarios
Risks
The text was updated successfully, but these errors were encountered: