A Resharper newbie question:
I’ve run “Find Code Issues” which gave me a bunch of issues. There are plenty of issues that I agree with Resharper’s suggestions but there are some where I’d like to keep the code as it is. Once, I make a decision on an issue I don’t want it to appear again in the issues list so that I don’t need to reconsider it again unnecessarily.
Is there a way suppress the suggestion after I make a decision on an issue. I know there is suppress with comment function but it clutters the code.
(I’m assuming you’re talking about individual instances of violations.)
Suppressing with a comment sounds like the best approach to me. You claim it clutters the code, but I think it documents the decision appropriately. It communicates with your team-mates that you’ve thought about the issue, as well as why you’ve come to the conclusion that you have.
If you find you’re having to do this frequently, that suggests you may want to change the code analysis settings to globally suppress certain suggestions/warnings.