ReSharper 2026.1 Help

HTML のコードインスペクション

HTML では、ReSharper 2026.1 は 2 種類のコードインスペクションを提供します。1 つは壊れた構文、未解決のシンボル、コンパイラーエラーなどのエラーを検出する インスペクション (これらは設定や無効化はできません)、もう 1 つは 41 個の 独自コードインスペクションで、任意のものを 無効化したり、 重要度レベルを変更できます。
これらの コードインスペクションは、すべての開いているファイルの 設計時にコードの問題を検出するのに役立ち、さらに 特定のスコープでコードの問題を見つけることもできます。

設定可能な HTML インスペクションは、 カテゴリ別に分類されています。

コード通知 (2 インスペクション)

このカテゴリは、重要度レベルが軽微なコードインスペクションをまとめています。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

無視されたパス
Web.IgnoredPath
resharper_web_ignored_path_highlighting

無効

マップパス
Web.MappedPath
resharper_web_mapped_path_highlighting

ヒント

一般的なプラクティスとコードの改善 (9 インスペクション)

このカテゴリには、主にコードの可読性に影響する中程度の重要度の問題を検出するインスペクションがまとめられています。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

重要なタグや属性が不足しています(<img> には代替テキストを指定する必要があります)
MissingAltAttributeInImgTag
resharper_missing_alt_attribute_in_img_tag_highlighting

ヒント

重要なタグや属性が不足しています(空の <title>)
EmptyTitleTag
resharper_empty_title_tag_highlighting

ヒント

重要なタグや属性が不足しています(<body> がありません)
MissingBodyTag
resharper_missing_body_tag_highlighting

警告

重要なタグや属性が不足しています(<head> と <body> がありません)
MissingHeadAndBodyTags
resharper_missing_head_and_body_tags_highlighting

警告

重要なタグや属性が不足しています(<head> がありません)
MissingHeadTag
resharper_missing_head_tag_highlighting

警告

重要なタグや属性が不足しています(<title> がありません)
MissingTitleTag
resharper_missing_title_tag_highlighting

ヒント

廃止されたタグや属性(<center> は廃止されました)
CenterTagIsObsolete
resharper_center_tag_is_obsolete_highlighting

警告

廃止されたタグや属性(属性 'clear' は廃止されました)
ClearAttributeIsObsolete.All
resharper_clear_attribute_is_obsolete_all_highlighting

警告

廃止されたタグや属性(属性 'clear' は廃止されました)
ClearAttributeIsObsolete
resharper_clear_attribute_is_obsolete_highlighting

警告

文法の問題 (4 インスペクション)

このカテゴリのインスペクションは、文字列リテラルやドキュメントコメント内の 文法上の問題を報告します。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

コメントの文法エラー
GrammarMistakeInComment
resharper_grammar_mistake_in_comment_highlighting

提案

マークアップ属性値の文法エラー
GrammarMistakeInMarkupAttribute
resharper_grammar_mistake_in_markup_attribute_highlighting

提案

マークアップテキストの文法エラー
GrammarMistakeInMarkupText
resharper_grammar_mistake_in_markup_text_highlighting

提案

文字列リテラルの文法エラー
GrammarMistakeInStringLiteral
resharper_grammar_mistake_in_string_literal_highlighting

無効

潜在的なコード品質問題 (24 インスペクション)

このカテゴリには、主に エラーまたは 警告レベルで、重大な問題(コードの臭い)を検出するインスペクションが含まれます。 このカテゴリには ローカライゼーション支援を保証するインスペクションも含まれます。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

文脈で許可されていない要素(<dl> が <dt> または <dd> 以外の要素を含む、または要素が閉じられていません)
DlTagContainsNonDtOrDdElements
resharper_dl_tag_contains_non_dt_or_dd_elements_highlighting

ヒント

文脈で許可されていない要素(<ol> が <li> 以外の要素を含む、または <li> が閉じられていません)
OlTagContainsNonLiElements
resharper_ol_tag_contains_non_li_elements_highlighting

ヒント

文脈で許可されていない要素(<ul> が <li> 以外の要素を含む、または <li> が閉じられていません)
UlTagContainsNonLiElements
resharper_ul_tag_contains_non_li_elements_highlighting

ヒント

HTML デッドコード
Html.DeadCode
resharper_html_dead_code_highlighting

警告

HTML 警告
Html.Warning
resharper_html_warning_highlighting

警告

Ids duplication
Html.IdDuplication
resharper_html_id_duplication_highlighting

警告

廃止または非標準要素
Html.Obsolete
resharper_html_obsolete_highlighting

警告

パスエラー
Html.PathError
resharper_html_path_error_highlighting

警告

スクリプトタグエラー(<script> が src 属性と内容の両方を持っています)
ScriptTagHasBothSrcAndContentAttributes
resharper_script_tag_has_both_src_and_content_attributes_highlighting

エラー

スクリプトタグエラー(<script> の前に内容を含む <script>)
ScriptTagWithContentBeforeIncludes
resharper_script_tag_with_content_before_includes_highlighting

ヒント

スクリプトタグエラー(<script> 内に他のタグがあり、<script> が閉じられていない可能性があります)
OtherTagsInsideScript1
resharper_other_tags_inside_script1_highlighting

エラー

スクリプトタグエラー(<script> 内に他のタグがあり、<script> が閉じられていない可能性があります)
OtherTagsInsideScript2
resharper_other_tags_inside_script2_highlighting

エラー

スクリプトタグエラー(閉じられていない <script> 内に他のタグがあります)
OtherTagsInsideUnclosedScript
resharper_other_tags_inside_unclosed_script_highlighting

エラー

スクリプトタグエラー(閉じていない <script>)
UnclosedScript
resharper_unclosed_script_highlighting

エラー

閉じられていないタグ
Html.TagNotClosed
resharper_html_tag_not_closed_highlighting

エラー

不明な属性
Html.AttributeNotResolved
resharper_html_attribute_not_resolved_highlighting

警告

不明な属性値
Html.AttributeValueNotResolved
resharper_html_attribute_value_not_resolved_highlighting

警告

不明なイベント
Html.EventNotResolved
resharper_html_event_not_resolved_highlighting

警告

不明な HTML エンティティ
Asp.Entity
resharper_asp_entity_highlighting

警告

不明な ID
Html.IdNotResolved
resharper_html_id_not_resolved_highlighting

警告

不明なタグ
Html.TagNotResolved
resharper_html_tag_not_resolved_highlighting

警告

間違った属性引用符
Html.AttributesQuotes
resharper_html_attributes_quotes_highlighting

ヒント

間違った終了タグ
Html.TagShouldBeSelfClosed
resharper_html_tag_should_be_self_closed_highlighting

警告

間違ったセルフクローズドタグ
Html.TagShouldNotBeSelfClosed
resharper_html_tag_should_not_be_self_closed_highlighting

警告

スペルの問題 (2 インスペクション)

これらのインスペクションは 様々なコンテキストでタイプミスを検出します。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

マークアップ属性値のタイプミス
MarkupAttributeTypo
resharper_markup_attribute_typo_highlighting

提案

マークアップテキストのタイプミス
MarkupTextTypo
resharper_markup_text_typo_highlighting

提案

2026 年 6 月 12 日