Code Inspections in Razor
In Razor, ReSharper 2020.2 provides 7 proprietary code inspections, any of which you can disable or change its severity level.
These code inspections help you detect code issues in design time in all open files, and additionally they allow you to find code issues in specific scope.
Configurable Razor inspections are listed below, grouped by their categories.
Potential Code Quality Issues (2 inspections)
This category includes inspections that detect critical issues (code smells), mostly with Error or Warning level. This category also includes inspections that ensure localization assistance. Inspection ID EditorConfig property | Default severity |
---|---|
Unknown Razor layoutRazor.LayoutNotResolved resharper_razor_layout_not_resolved_highlighting | Error |
Unknown Razor sectionRazor.SectionNotResolved resharper_razor_section_not_resolved_highlighting | Error |
Spelling issues (5 inspections)
These inspections detect typos in various contexts. Inspection ID EditorConfig property | Default severity |
---|---|
Typo in commentCommentTypo resharper_comment_typo_highlighting | Suggestion |
Typo in identifierIdentifierTypo resharper_identifier_typo_highlighting | Suggestion |
Typo in markup attribute valueMarkupAttributeTypo resharper_markup_attribute_typo_highlighting | Suggestion |
Typo in markup textMarkupTextTypo resharper_markup_text_typo_highlighting | Suggestion |
Typo in string literalStringLiteralTypo resharper_string_literal_typo_highlighting | Suggestion |
Last modified: 30 November 2020