xml
XML files, storyboards, and XIB files: each file parses.
Selected when
Section titled “Selected when”Always.
Checks
Section titled “Checks”xmllint
Section titled “xmllint”Parses every XML file with xmllint.
Runs at the commit stage.
A malformed XML file fails only when a program reads it, often in a build or at run time.
What to do
Section titled “What to do”Fix the line xmllint names.
Example
Section titled “Example”The XML text <settings><enabled>true</settings> has mismatched tags. Close the child element as <enabled>true</enabled> before closing settings.
Turn it off
Section titled “Turn it off”gspot ignore xml/xmllint --paths "<path>" --reason "<why>"Tools and versions
Section titled “Tools and versions”| Tool | Version |
|---|---|
| xmllint | Any, install it yourself |