Azure / Azure/azure-sdk-tools

Analyzer should display a non-breaking message when setting a Response<T>.Value to null

Open
#6,401 0 comments 0 reactions 0 assignees View on GitHub
.NETClientSDKAnalyzers
Dominant language
C#
Stars
135
Forks
260
Avg merge
1d 22h
Merged PRs (30d)
115

Description

The following statement should indicate to the developer, with a suggestion below warning level, that `NullableResponse` should be used instead.

`Response.FromValue(null, rawResponse);`

Contributor guide

Open the contributing guide

Research direction

Start by locating the analyzer handling `Response.FromValue(null, rawResponse)` and inspect how diagnostics and severity suggestions are defined. Confirm that this statement produces a non-breaking warning-level suggestion to use `NullableResponse`, and add or update the relevant analyzer verification if one is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.