ReSharper 2016.1 Help

Sharing Inspection Results

ReSharper | Inspect | Save Issues Report
ReSharper | Inspect | Load Saved Issues Report

In large projects, code inspection results can be used im many different ways. For instance, to assign found issues to different developers: you can copy or export a code issue or a group of issues and submit the copy to an issue tracker.

Both Inspection Results Window and Errors in Solution Window allow exporting code issues into text, HTML, or XML files.

To export inspection results to a file

  1. Open code inspection results in the Inspection Results Window or enable the solution-wide analysis and open the list of errors in the Errors in Solution Window.
  2. Click Export ThemedIcon.Export.Screen.[Gray] on the toolbar to export the data currently displayed in the window in text format, or use the drop-down selector to export the data in XML or HTML format. The Export Data dialog box that appears, will help you to save the data to a file or copy it to the clipboard.
  3. An alternative way to export current issues to an XML report, is to choose ReSharper | Inspect | Save Issues Report in the main menu and then specify file name and location.

Saving inspection results to the XML format has several advantages: first, this format is compatible with the output format of the InspectCode command-line tool and JetBrains TeamCity, second, you can later load and study it in th the Inspection Results Window. Regardless of the tool that was used to generate the XML report, you can always open and examine it with ReSharper.

To study inspection results saved in XML report

  1. In the main menu, choose ReSharper | Inspect | Load Saved Issues Report.
  2. Select an XML report file and click Open.
  3. The report is opened in the new tab of the Inspection Results Window. If the current solution corresponds to that of the XML report, you will be able to navigate to the issues by double-clicking on the inspection result items.

Besides exporting, you can copy individual entries or custom selections of entries shown in the Inspection Results Window and Errors in Solution Window to the clipboard. The copied issue information include names of project and solution, file name and line number as well as the description of the issue. For example:

Solution MySolution.sln
Project MyProject
MyProject\About.aspx.cs:2 Using directive is not required by the code and can be safely removed

To copy information on found issues to the clipboard

  1. Select one or more code issues, or issue groups in the Inspection Results Window or Errors in Solution Window.
  2. Right-click on the selection and choose Copy in the context menu.
  3. Paste the copied issues where appropriate.
    Copying found code issues to the clipboard

See Also

Last modified: 19 August 2016