Root file tag must have an 'id' attribute
Detects missing or incorrect topic IDs in XML files. Every XML topic must have the id
attribute in the root <topic>
tag with the value equal to the topic file name without the extension.
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
WrsIdMissingContainingFileInspection- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
The quick fix either adds or corrects the ID to match the topic file name.
For example, if the topic file name is some_intro.topic
, then the root <topic>
tag must have id="some_intro"
.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Writerside, 2024.11.243.21565.432 |