Code Inspections in Razor
In Razor, JetBrains Rider 2024.3 provides two kinds of code inspections: 3 inspections that detect errors such as broken syntax, unresolved symbols, compiler errors, and so on (you cannot configure or disable any of these inspections), and 14 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.
Grammar Issues (4 inspections)
Inspections in this category report grammar issues in string literals and documentation comments.
Inspection | |
---|---|
Grammar error in comment | |
Grammar error in markup attribute value | |
Grammar error in markup text | |
Grammar error in string literal |
Potential Code Quality Issues (5 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 | |
---|---|
Null-Conditional operator is not supported in this version of Razor | |
Unknown HTML tag, may be a component | |
Unknown Razor assembly | |
Unknown Razor layout | |
Unknown Razor section |
Spelling Issues (5 inspections)
These inspections detect typos in various contexts.
Inspection | |
---|---|
| |
| |
Typo in markup attribute value | |
| |
|