Running code analysis

The second tool, Inspectcode can be used to run the ReSharper code analysis.

To use Inspectcode, just run the following command:

InspectCode [options] [project file]

As with the [project file] parameter, specify the path to your solution file.

You can check the list of all the available options with the following command:

Inspectcode /help

Like with dupfinder, Inspectcode saves a report to the Temp folder by default, and you can change this location with the /output option.

The report is generated as an XML file and contains the following two parts:

  • A list of all types of issues found during analysis with their severity and the link to the Wikipedia page (if available) that contains more information on the issue
  • A list of all the issues grouped by projects with a specified file and the line in which the issue occurs

Inspectcode will use code analysis settings from a .DotSettings file, if it finds one in your project. With additional options, you can specify which project from your solution you would like to analyze, and choose if you would like to use solution-wide analysis and more.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.4.174