Code Inspections in XML
This topic lists all JetBrains Rider code inspections available in XML.
You can toggle specific inspections or change their severity level on the Editor | Inspection Settings | Inspection Severity | Other Languages page of the IDE settings Ctrl+Alt+S.
Inspection | Description | Default Severity |
---|---|---|
Deprecated symbol | Reports a deprecated XML element or attribute. Symbols can be marked by XML comment or documentation tag with text 'deprecated'. | |
Duplicate 'id' attribute | Reports a duplicate | |
Empty element content | Reports XML elements without contents. Example:
<user>
<name></name>
</user>
After the quick-fix is applied:
<user>
<name/>
</user>
| |
Failed external validation | Reports a discrepancy in an XML file with the specified DTD or schema detected by the Xerces validator. | |
Redundant attribute with default value | Reports a redundant assignment of the default value to an XML attribute. | |
Unbound namespace prefix | Reports an unbound namespace prefix in XML. | |
Unresolved 'id' reference | Reports an unresolved | |
Unresolved DTD reference | Reports inconsistency in a DTD-specific reference, for example, in a reference to an XML entity or to a DTD element declaration. Works in DTD an XML files. | |
Unresolved file reference | Reports an unresolved file reference in XML. | |
Unused schema declaration | Reports an unused namespace declaration or location hint in XML. | |
Wrong root element | Reports a root tag name different from the name specified in the | |
XML highlighting | Reports XML validation problems in the results of a batch code inspection. |