Add validateRules target (xmllint) for rules/*.xml

This commit is contained in:
amai2012 2019-09-21 20:33:48 +02:00
parent c1961cec1c
commit 16f1d8196b
2 changed files with 6 additions and 0 deletions

View File

@ -369,6 +369,9 @@ validateXML: createXMLExamples
checkCWEEntries: /tmp/errorlist.xml checkCWEEntries: /tmp/errorlist.xml
./tools/listErrorsWithoutCWE.py -F /tmp/errorlist.xml ./tools/listErrorsWithoutCWE.py -F /tmp/errorlist.xml
.PHONY: validateRules
validateRules:
xmllint --noout rules/*.xml
###### Build ###### Build

View File

@ -473,6 +473,9 @@ int main(int argc, char **argv)
fout << "\txmllint --noout --relaxng cppcheck-errors.rng /tmp/example.xml\n"; fout << "\txmllint --noout --relaxng cppcheck-errors.rng /tmp/example.xml\n";
fout << "\ncheckCWEEntries: /tmp/errorlist.xml\n"; fout << "\ncheckCWEEntries: /tmp/errorlist.xml\n";
fout << "\t./tools/listErrorsWithoutCWE.py -F /tmp/errorlist.xml\n"; fout << "\t./tools/listErrorsWithoutCWE.py -F /tmp/errorlist.xml\n";
fout << ".PHONY: validateRules\n",
fout << "validateRules:\n";
fout << "\txmllint --noout rules/*.xml\n";
fout << "\n###### Build\n\n"; fout << "\n###### Build\n\n";