Run check for missing CWE entries on travis.

This commit is contained in:
amai2012 2018-10-22 13:14:48 +02:00
parent 749699c632
commit 39c2625789
3 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,8 @@ script:
# - make validateXML doesn't work in this context unfortunately
- ${CPPCHECK} --errorlist >/tmp/errorlist.xml
- xmllint --noout --relaxng cppcheck-errors.rng /tmp/errorlist.xml
# check for missing CWE entries
- make checkCWEEntries
# check test/cfg
- make checkcfg
- make validateXML

View File

@ -344,6 +344,8 @@ validateXML: createXMLExamples
xmllint --noout --relaxng cppcheck-errors.rng /tmp/errorlist.xml
xmllint --noout --relaxng cppcheck-errors.rng /tmp/example.xml
checkCWEEntries: /tmp/errorlist.xml
./tools/listErrorsWithoutCWE.py -F /tmp/errorlist.xml
###### Build
$(SRCDIR)/analyzerinfo.o: lib/analyzerinfo.cpp lib/analyzerinfo.h lib/config.h lib/errorlogger.h lib/suppressions.h lib/importproject.h lib/platform.h lib/utils.h lib/path.h

View File

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