ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Code inspections

Last modified: 11 July 2024

ReSharper provides over 2500 code inspections in all supported languages. These inspections are applied to detect and highlight code issues in design time in all opened files , and/or to find all code issues in specific scope, which can be as large as the entire solution .

To find out what kind of code inspections ReSharper provides, check out the full list of ReSharper code inspections in different languages.

Code inspections can be divided into the following groups:

  • ReSharper's own code inspections that include:

    • Inspections with the fixed severity level 'Error'. These inspections detect compiler errors and there is no way to disable or configure them.

    • Inspections with configurable severity levels, which detect the rest of code issues (for example, compiler warnings, runtime and logical errors, code smells, redundancies, improvement suggestions, and so on). You can find these configurable inspections on the Code Inspection | Inspection Severity page of ReSharper options Alt+R, O. These inspections can be configured in several ways — you can suppress the detected issues with comments and attributes, disable them or change their severity level in settings or .editorconfig files.

  • Custom code inspections defined as structural search and replace patterns, which also have configurable severity levels.