Find Code Issues with Code Inspection
Static code analysis in ReSharper is called Code Inspection and performed by applying over 2300 individual code inspections to your code in all supported languages.
Code issues can be found in several ways:
ReSharper finds and highlights code issues automatically in design time for all files opened in the editor.
The design time code inspection scope can be extended to the entire solution with the solution-wide analysis- in this case, you will be able to see all errors (and optionally warnings) in the solution as well as some additional issues in the opened files, for example unused public members.
You can find code issues in the specified scope, which can be as large as the whole solution.
You can also find code issues from the command line.
In this section:
- Code Inspections
- Detect Code Issues in Design Time
- Find Code Issues in Specific Scope
- Solution-Wide Analysis
- Solution-Wide Code Inspections
- Configure Code Inspection Settings
- Create Custom Code Inspections and Quick-Fixes
- Spell Checking with ReSpeller
- Value and Nullability Analysis
- Collection Access Analysis
- Code Analysis and Helpers for String Literals
- Use Annotations to Refine Code Inspection
This feature is supported in the following languages and technologies:
The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see corresponding topics in the ReSharper by Language section.