runastyle also formats cppcheck-errors.rng using xmllint

This commit is contained in:
amai 2018-11-05 21:14:49 +01:00
parent 9b67e680ae
commit 1244213d2e
2 changed files with 69 additions and 68 deletions

134
cppcheck-errors.rng Executable file → Normal file
View File

@ -1,70 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<grammar ns=""
xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<element name="results">
<attribute name="version">
<data type="integer"/>
</attribute>
<element name="cppcheck">
<attribute name="version">
<data type="string"/>
</attribute>
</element>
<element name="errors">
<zeroOrMore>
<element name="error">
<optional>
<attribute name="cwe">
<data type="integer"/>
</attribute>
</optional>
<attribute name="id">
<data type="NCName"/>
</attribute>
<optional>
<attribute name="inconclusive">
<data type="boolean"/>
</attribute>
</optional>
<attribute name="msg">
<data type="string"/>
</attribute>
<attribute name="severity">
<data type="NCName"/>
</attribute>
<attribute name="verbose">
<data type="string"/>
</attribute>
<zeroOrMore>
<element name="location">
<optional>
<attribute name="file0">
<data type="string"/>
</attribute>
</optional>
<attribute name="file">
<data type="string"/>
</attribute>
<attribute name="line">
<data type="integer"/>
</attribute>
<optional>
<attribute name="info">
<data type="string"/>
</attribute>
</optional>
</element>
</zeroOrMore>
<zeroOrMore>
<element name="symbol">
<data type="string"/>
</element>
</zeroOrMore>
</element>
</zeroOrMore>
</element>
</element>
</start>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" ns="" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<element name="results">
<attribute name="version">
<data type="integer"/>
</attribute>
<element name="cppcheck">
<attribute name="version">
<data type="string"/>
</attribute>
</element>
<element name="errors">
<zeroOrMore>
<element name="error">
<optional>
<attribute name="cwe">
<data type="integer"/>
</attribute>
</optional>
<attribute name="id">
<data type="NCName"/>
</attribute>
<optional>
<attribute name="inconclusive">
<data type="boolean"/>
</attribute>
</optional>
<attribute name="msg">
<data type="string"/>
</attribute>
<attribute name="severity">
<data type="NCName"/>
</attribute>
<attribute name="verbose">
<data type="string"/>
</attribute>
<zeroOrMore>
<element name="location">
<optional>
<attribute name="file0">
<data type="string"/>
</attribute>
</optional>
<attribute name="file">
<data type="string"/>
</attribute>
<attribute name="line">
<data type="integer"/>
</attribute>
<optional>
<attribute name="info">
<data type="string"/>
</attribute>
</optional>
</element>
</zeroOrMore>
<zeroOrMore>
<element name="symbol">
<data type="string"/>
</element>
</zeroOrMore>
</element>
</zeroOrMore>
</element>
</element>
</start>
</grammar>

View File

@ -58,3 +58,6 @@ done
xmllint --format -o man/cppcheck.1.xml_ man/cppcheck.1.xml
mv -f man/cppcheck.1.xml_ man/cppcheck.1.xml
xmllint --format -o cppcheck-errors_.rng cppcheck-errors.rng
mv cppcheck-errors_.rng cppcheck-errors.rng