
Id - allows linking each issue to the corresponding inspection.Ĭategory - can be used to group similar issues by categories. The list of found issue types where each type corresponds to a specific inspection and has the following attributes: This file includes all code issues found within the specified scope (the whole solution or particular projects). When InspectCode finishes the analysis, it saves the results in an XML file specified in the command prompt -o=. You can also run code cleanup, and coverage analysis from the command line. If you have problems running InspectCode, make sure that your setup meets the system requirements. NET tools and run InspectCode with the jb command. NET framework to load the application in partial trust, which means it won't load or run correctly.Īlternatively, you can install ReSharper command line tools as.

zip file is 'unblocked' before extracting: right-click the file, select Properties and click Unblock. Unzip the command line tools package in any directory. Use the selector next to the Download button to choose your operating system. Run InspectCodeĭownload ReSharper Command Line Tools. In such cases, use the -no-build option to make InspectCode skip the build. However, there are cases (for example, C++ projects) when an unnecessary build can bring unwanted overhead.

For example, if there are source generators in your solution, InspectCode will use its own logic to dump the generated files to disk. In most cases, it is recommended to leave the default behavior or use the -build option because even if your CI chain already includes a build step before running InspectCode, MSBuild will process a recently built solution very fast.Īpart from that, there are scenarios where a build by InspectCode is required for a correct analysis. You will see a warning about that in the output, which can be suppressed by explicitly specifying the -build or -no-build option. This lets the tool always have the correct solution model and find only relevant code issues.


Starting from version 2021.2, InspectCode restores NuGet packages and builds the target solution by default before starting the analysis. InspectCode, a free cross-platform command line tool requires a minimum of one parameter - your solution file - to apply all of ReSharper’s inspections. One of ReSharper’s most notable features, code inspection, is available even without opening the IDE.
