roslynator icon indicating copy to clipboard operation
roslynator copied to clipboard

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

Open adameska opened this issue 5 years ago • 2 comments

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"

adameska avatar Apr 05 '19 14:04 adameska

This bit me recently, trying to use 2019 without Resharper and would be nice to catch these cases too!

adameska avatar Apr 05 '19 14:04 adameska

It would be nice to support also methods annotated with JetBrains.Annotations.PureAttribute.

NN--- avatar Dec 25 '20 20:12 NN---