diff --git a/.travis.yml b/.travis.yml index 0440350e2..9b4b1827d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Makefile b/Makefile index f92a6c532..9c47447a7 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/tools/dmake.cpp b/tools/dmake.cpp index 8c34f6c85..ab54a2962 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -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";