ReSharper 2018.1 Help

Code Inspections in HTML

In HTML, ReSharper 2018.1 provides two kinds of code inspections: 2 inspections that detect errors such as broken syntax, unresolved symbols, compiler errors, etc. (you cannot configure or disable any of these inspections), and 35 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 ID EditorConfig property Default severity
Ignored path Web.IgnoredPath resharper_web_ignored_path_highlighting Disabled
Mapped path Web.MappedPath resharper_web_mapped_path_highlighting Hint

Common Practices and Code Improvements (9 inspections)

This category groups inspections that hunt for medium severity issues that mainly affect code readability.
Inspection ID EditorConfig property Default severity
Important tags or attributes missing (<img> should specify alternative text) MissingAltAttributeInImgTag resharper_missing_alt_attribute_in_img_tag_highlighting Hint
Important tags or attributes missing (empty <title>) EmptyTitleTag resharper_empty_title_tag_highlighting Hint
Important tags or attributes missing (missing <body>) MissingBodyTag resharper_missing_body_tag_highlighting Warning
Important tags or attributes missing (missing <head> and <body>) MissingHeadAndBodyTags resharper_missing_head_and_body_tags_highlighting Warning
Important tags or attributes missing (missing <head>) MissingHeadTag resharper_missing_head_tag_highlighting Warning
Important tags or attributes missing (missing <title>) MissingTitleTag resharper_missing_title_tag_highlighting Hint
Obsolete tags and attributes (<center> is obsolete) CenterTagIsObsolete resharper_center_tag_is_obsolete_highlighting Warning
Obsolete tags and attributes (attribute 'clear' is obsolete) ClearAttributeIsObsolete.All resharper_clear_attribute_is_obsolete_all_highlighting Warning
Obsolete tags and attributes (attribute 'clear' is obsolete) ClearAttributeIsObsolete resharper_clear_attribute_is_obsolete_highlighting Warning

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 ID EditorConfig property Default severity
Elements not allowed in context (<dl> contains elements other than <dt> or <dd> or they are unclosed) DlTagContainsNonDtOrDdElements resharper_dl_tag_contains_non_dt_or_dd_elements_highlighting Hint
Elements not allowed in context (<ol> contains elements other than <li> or <li> is unclosed) OlTagContainsNonLiElements resharper_ol_tag_contains_non_li_elements_highlighting Hint
Elements not allowed in context (<ul> contains elements other than <li> or <li> is unclosed) UlTagContainsNonLiElements resharper_ul_tag_contains_non_li_elements_highlighting Hint
Html Dead Code Html.DeadCode resharper_html_dead_code_highlighting Warning
Html Warning Html.Warning resharper_html_warning_highlighting Warning
Ids duplication Html.IdDuplication resharper_html_id_duplication_highlighting Warning
Not closed tag Html.TagNotClosed resharper_html_tag_not_closed_highlighting Error
Obsolete or nonstandard element Html.Obsolete resharper_html_obsolete_highlighting Warning
Path error Html.PathError resharper_html_path_error_highlighting Warning
Script tag errors (<script> with both src and content) ScriptTagHasBothSrcAndContentAttributes resharper_script_tag_has_both_src_and_content_attributes_highlighting Error
Script tag errors (<script> with content before included <script>) ScriptTagWithContentBeforeIncludes resharper_script_tag_with_content_before_includes_highlighting Hint
Script tag errors (other tags inside <script> - possibly unclosed <script>) OtherTagsInsideScript1 resharper_other_tags_inside_script1_highlighting Error
Script tag errors (other tags inside <script> - possibly unclosed <script>) OtherTagsInsideScript2 resharper_other_tags_inside_script2_highlighting Error
Script tag errors (unclosed <script> with other tags inside) OtherTagsInsideUnclosedScript resharper_other_tags_inside_unclosed_script_highlighting Error
Script tag errors (unclosed <script>) UnclosedScript resharper_unclosed_script_highlighting Error
Unknown attribute Html.AttributeNotResolved resharper_html_attribute_not_resolved_highlighting Warning
Unknown attribute value Html.AttributeValueNotResolved resharper_html_attribute_value_not_resolved_highlighting Warning
Unknown event Html.EventNotResolved resharper_html_event_not_resolved_highlighting Warning
Unknown html entity Asp.Entity resharper_asp_entity_highlighting Warning
Unknown ID Html.IdNotResolved resharper_html_id_not_resolved_highlighting Warning
Unknown tag Html.TagNotResolved resharper_html_tag_not_resolved_highlighting Warning
Wrong attribute quotes Html.AttributesQuotes resharper_html_attributes_quotes_highlighting Hint
Wrong closed tag Html.TagShouldBeSelfClosed resharper_html_tag_should_be_self_closed_highlighting Warning
Wrong self-closed tag Html.TagShouldNotBeSelfClosed resharper_html_tag_should_not_be_self_closed_highlighting Warning
Last modified: 20 August 2018