dotnet / dotnet/roslynator

Feature Request: Warn when not using return value of pure method

Open
#531 2 comments 2 reactions 0 assignees View on GitHub
Area-Analyzers Feature Request
Dominant language
C#
Stars
3.5k
Forks
294
Avg merge
2h 30m
Merged PRs (30d)
4

Description

**Product and Version Used**:
rosylnator, 2019

**Steps to Reproduce**:
string testString = "123 test";
testString.Replace("123", "");
output(testString);

**Actual Behavior**:
no warning that "Return value of pure method is not used"

**Expected Behavior**:
Warn me! "Return value of pure method is not used"

Contributor guide

Open the contributing guide

Research direction

Begin with the C# reproduction in the issue and inspect the Roslynator analyzer entry points that handle method calls and diagnostics. Done means the shown unused pure-method return value produces the requested warning without incorrectly warning when the value is used; no specific files or tests are named.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.