Add validateRules target (xmllint) for rules/*.xml
This commit is contained in:
parent
c1961cec1c
commit
16f1d8196b
3
Makefile
3
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue