Code Inspections in HTML
In HTML, ReSharper 2022.1 provides two kinds of code inspections: 2 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 37 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 HTML inspections are listed below, grouped by their categories.
Code Notification (2 inspections)
This category groups code inspections with minor severity levels.
Inspection | |
---|---|
Ignored path | |
Mapped path |
Common Practices and Code Improvements (9 inspections)
This category groups inspections that hunt for medium severity issues that mainly affect code readability.
Inspection | |
---|---|
Important tags or attributes missing (<img> should specify alternative text) | |
Important tags or attributes missing (empty <title>) | |
Important tags or attributes missing (missing <body>) | |
Important tags or attributes missing (missing <head> and <body>) | |
Important tags or attributes missing (missing <head>) | |
Important tags or attributes missing (missing <title>) | |
Obsolete tags and attributes (<center> is obsolete) | |
Obsolete tags and attributes (attribute 'clear' is obsolete) | |
Obsolete tags and attributes (attribute 'clear' is obsolete) |
Potential Code Quality Issues (24 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 | |
---|---|
Elements not allowed in context (<dl> contains elements other than <dt> or <dd> or they are unclosed) | |
Elements not allowed in context (<ol> contains elements other than <li> or <li> is unclosed) | |
Elements not allowed in context (<ul> contains elements other than <li> or <li> is unclosed) | |
HTML Dead Code | |
HTML Warning | |
Ids duplication | |
Obsolete or nonstandard element | |
Path error | |
Script tag errors (<script> with both src and content) | |
Script tag errors (<script> with content before included <script>) | |
Script tag errors (other tags inside <script> - possibly unclosed <script>) | |
Script tag errors (other tags inside <script> - possibly unclosed <script>) | |
Script tag errors (unclosed <script> with other tags inside) | |
Script tag errors (unclosed <script>) | |
Unclosed tag | |
Unknown attribute | |
Unknown attribute value | |
Unknown event | |
Unknown HTML entity | |
Unknown ID | |
Unknown tag | |
Wrong attribute quotes | |
Wrong closed tag | |
Wrong self-closed tag |
Spelling issues (2 inspections)
These inspections detect typos in various contexts.
Inspection | |
---|---|
Typo in markup attribute value | |
|