Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Putting Resharper's ignored errors under version control

When I ignore specific errors in "Errors in Solution" window, Resharper remembers this setting.

enter image description here

I tried to reboot and restart Visual Studio, the ignored errors stayed ignored. Now I wanted to pass the ignored errors list to another programmers in the team by putting some setting file under version control. But I could not find where does Resharper store which errors are ignored. I have the following versions of SW.

Visual Studio 2012 
JetBrains ReSharper 8.2.1 Full Edition
Build 8.2.1000.4556 on 2014-05-19T10:12:38

Update: I removed files in the following folder and the ignored errors reset, all errors became unignored.

%AppData%\..\Local\JetBrains\ReSharper\v8.2\SolutionCaches\

So it keeps the ignored errors somewhere in those files. Still I did not see the way to put it under version control.

like image 746
Andrej Adamenko Avatar asked Jun 11 '14 19:06

Andrej Adamenko


2 Answers

Though not related to the exact issue of the original poster, you might have stumbled upon this question looking for the answer below :)

If you've changed the behavior of an inspection from the glyph like this and saved it to a configuration layer and set it to Do Not Show or something else and then saved it to the Team level:

Configure inspection severity.enter image description here

Then depending on where you set the value, Computer, Solution personal or Solution Team, it's stored in a different settings file.

You can then add the Solution.sln.DotSettings file to source control to share these suppression between all team members.

To undo the supression of such warnings, you'll have to venture into the layered options structure of Resharper, which can be a little confusing if you haven't gone in there before.

Manage Options

Then depending on where it's saved, look under the wrench item for the selected layer:

Edit Layer

Find the inspection and set it:

Set the inspection

like image 200
jessehouwing Avatar answered Oct 28 '22 01:10

jessehouwing


In the toolbar to the solution errors window, there should be an export button. You should be able to export all ignored items to xml or html here.

like image 32
citizenmatt Avatar answered Oct 27 '22 23:10

citizenmatt